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

To be in line with other, similar options.
This commit is contained in:
Alex Rønne Petersen 2024-11-28 16:15:07 +01:00
parent af55b27d5a
commit fe5dbc2474
No known key found for this signature in database

View file

@ -229,7 +229,7 @@ is_linking_libc: bool = false,
/// Computed during make(). /// Computed during make().
is_linking_libcpp: bool = false, is_linking_libcpp: bool = false,
no_builtin: bool = false, no_builtin: ?bool = null,
/// Populated during the make phase when there is a long-lived compiler process. /// Populated during the make phase when there is a long-lived compiler process.
/// Managed by the build runner, not user build script. /// Managed by the build runner, not user build script.
@ -1646,8 +1646,8 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {
} }
} }
if (compile.no_builtin) { if (compile.no_builtin) |enabled| {
try zig_args.append("-fno-builtin"); try zig_args.append(if (enabled) "-fbuiltin" else "-fno-builtin");
} }
if (b.sysroot) |sysroot| { if (b.sysroot) |sysroot| {