aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-03 17:22:31 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-02-04 01:55:39 -0500
commit693b12f8e1c1d99d33c01961c1fdc972a5255eb6 (patch)
treeda0106bbc81d8830be509ffda0d7c0107a7400db /src/Module.zig
parent4009e0d2b1ac5b0a9a0caff676d5c73ae18c6e9e (diff)
downloadzig-693b12f8e1c1d99d33c01961c1fdc972a5255eb6.tar.gz
zig-693b12f8e1c1d99d33c01961c1fdc972a5255eb6.zip
std.Build: support exposing and depending on zig modules
New API introduced: std.Build.addModule This function exposes a zig module with the given name, which can be used by packages that depend on this one via std.Build.Dependency.module. std.Build.Pkg and related functionality is deleted. Every use case has a straightforward upgrade path using the new Module struct. std.Build.OptionsStep.getPackage is replaced by std.Build.OptionsStep.createModule. std.Build.CompileStep.addPackagePath is replaced by std.Build.CompileStep.addAnonymousModule. This partially addresses #14307 by renaming some of the instances of "package" to "module". Closes #14278
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions