authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-03-25 16:33:25-04:00
committergravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-03-25 16:33:25-04:00
log4569a28ea35e7152f01db1d36c493506b6ca71b6
tree0abcd98b7b88d89075042f391859a3c0152357ea
parentc79073c176a909abce3feba96203caef1e6d8360

build: fixes from review


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

lib/std/Build/CompileStep.zig+4-3
......@@ -140,7 +140,8 @@ link_function_sections: bool = false,
140140/// exported symbols.
141141link_gc_sections: ?bool = null,
142142
143linker_dynamicbase: ?bool = null,
143/// (Windows) Whether or not to enable ASLR. Maps to the /DYNAMICBASE[:NO] linker argument.
144linker_dynamicbase: bool = true,
144145
145146linker_allow_shlib_undefined: ?bool = null,
146147
......@@ -1476,8 +1477,8 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
14761477 if (self.link_gc_sections) |x| {
14771478 try zig_args.append(if (x) "--gc-sections" else "--no-gc-sections");
14781479 }
1479 if (self.linker_dynamicbase) |x| {
1480 if (!x) try zig_args.append("--no-dynamicbase");
1480 if (!self.linker_dynamicbase) {
1481 try zig_args.append("--no-dynamicbase");
14811482 }
14821483 if (self.linker_allow_shlib_undefined) |x| {
14831484 try zig_args.append(if (x) "-fallow-shlib-undefined" else "-fno-allow-shlib-undefined");