authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-28 16:15:07+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-12 17:07:50+02:00
logfe5dbc247430cc0b7bce4fe7d01ef6c425db0bf2
tree2ea69f514e02e2cadaf89fbb92c66379ceac76a7
parentaf55b27d5a6fd7af37892eebc01f1c6e9dbaafdd
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Build: Change Step.Compile.no_builtin from bool to ?bool.

To be in line with other, similar options.

1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Build/Step/Compile.zig+3-3
...@@ -229,7 +229,7 @@ is_linking_libc: bool = false,...@@ -229,7 +229,7 @@ is_linking_libc: bool = false,
229/// Computed during make().229/// Computed during make().
230is_linking_libcpp: bool = false,230is_linking_libcpp: bool = false,
231231
232no_builtin: bool = false,232no_builtin: ?bool = null,
233233
234/// Populated during the make phase when there is a long-lived compiler process.234/// Populated during the make phase when there is a long-lived compiler process.
235/// Managed by the build runner, not user build script.235/// Managed by the build runner, not user build script.
...@@ -1646,8 +1646,8 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {...@@ -1646,8 +1646,8 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {
1646 }1646 }
1647 }1647 }
16481648
1649 if (compile.no_builtin) {1649 if (compile.no_builtin) |enabled| {
1650 try zig_args.append("-fno-builtin");1650 try zig_args.append(if (enabled) "-fbuiltin" else "-fno-builtin");
1651 }1651 }
16521652
1653 if (b.sysroot) |sysroot| {1653 if (b.sysroot) |sysroot| {