diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-03 17:22:31 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-04 01:55:39 -0500 |
| commit | 693b12f8e1c1d99d33c01961c1fdc972a5255eb6 (patch) | |
| tree | da0106bbc81d8830be509ffda0d7c0107a7400db /src/Module.zig | |
| parent | 4009e0d2b1ac5b0a9a0caff676d5c73ae18c6e9e (diff) | |
| download | zig-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
