aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-02-28 01:37:10 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-28 01:37:10 -0800
commit6b6c1b1b0e04d70a4917f073a6a8bc87a5e8abb3 (patch)
treec3b32e4ab3e3c081c9ab1091cd0ca860dc477c4f /lib/std/Build
parent5c44934e20fedb29b88616f51de70c92e5d4ba42 (diff)
downloadzig-6b6c1b1b0e04d70a4917f073a6a8bc87a5e8abb3.tar.gz
zig-6b6c1b1b0e04d70a4917f073a6a8bc87a5e8abb3.zip
Revert "Merge pull request #22898 from kristoff-it/deprecated-proposal"
This reverts commit dea72d15da4fba909dc3ccb2e9dc5286372ac023, reversing changes made to ab381933c87bcc744058d25a876cfdc0d23fc674. The changeset does not work as advertised and does not have sufficient test coverage. Reopens #22822
Diffstat (limited to 'lib/std/Build')
-rw-r--r--lib/std/Build/Module.zig4
-rw-r--r--lib/std/Build/Step/Options.zig3
2 files changed, 0 insertions, 7 deletions
diff --git a/lib/std/Build/Module.zig b/lib/std/Build/Module.zig
index 40b9a5e619..f299946731 100644
--- a/lib/std/Build/Module.zig
+++ b/lib/std/Build/Module.zig
@@ -557,10 +557,6 @@ pub fn appendZigProcessFlags(
try addFlag(zig_args, m.pic, "-fPIC", "-fno-PIC");
try addFlag(zig_args, m.red_zone, "-mred-zone", "-mno-red-zone");
- // -fno-allow-deprecated is the CLI default, and not inherited, so only pass the flag if true.
- const allow_deprecated = m.owner.graph.allow_deprecated orelse (m.owner.graph.root_builder != m.owner);
- if (allow_deprecated == true) try zig_args.append("-fallow-deprecated");
-
if (m.dwarf_format) |dwarf_format| {
try zig_args.append(switch (dwarf_format) {
.@"32" => "-gdwarf32",
diff --git a/lib/std/Build/Step/Options.zig b/lib/std/Build/Step/Options.zig
index fda358ee37..dd09c0b5c0 100644
--- a/lib/std/Build/Step/Options.zig
+++ b/lib/std/Build/Step/Options.zig
@@ -514,7 +514,6 @@ test Options {
.result = try std.zig.system.resolveTargetQuery(.{}),
},
.zig_lib_directory = std.Build.Cache.Directory.cwd(),
- .root_builder = undefined,
};
var builder = try std.Build.create(
@@ -524,8 +523,6 @@ test Options {
&.{},
);
- graph.root_builder = builder;
-
const options = builder.addOptions();
const KeywordEnum = enum {