diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-02-25 23:50:56 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-02-26 14:41:33 -0500 |
| commit | c5aa680c88f7c03718460ff38e7cb1f7c5482cf2 (patch) | |
| tree | 945c63b1778719f79ead29a757d227184a406d13 /src/Package/Module.zig | |
| parent | 4ddb13468b372b2f722703b5e6d60997776c251a (diff) | |
| download | zig-c5aa680c88f7c03718460ff38e7cb1f7c5482cf2.tar.gz zig-c5aa680c88f7c03718460ff38e7cb1f7c5482cf2.zip | |
don't inherit allowed deprecation from parent modules
Inheriting allow-deprecation from parent modules doesn't make too much
sense, so instead make them default to disallow unless otherwise
specified. This allows build system to avoid redundant
`-fno-allow-deprecated` args.
This makes the generated CLIs smaller, and makes zig1.wasm update not
needed.
Also represented `is_root` differently (moved to field of graph).
Diffstat (limited to 'src/Package/Module.zig')
| -rw-r--r-- | src/Package/Module.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Package/Module.zig b/src/Package/Module.zig index 6bd33dffa1..c5aa21a105 100644 --- a/src/Package/Module.zig +++ b/src/Package/Module.zig @@ -238,7 +238,6 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module { const allow_deprecated = b: { if (options.inherited.allow_deprecated) |x| break :b x; - if (options.parent) |p| break :b p.allow_deprecated; break :b false; }; |
