mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
std.build: fix dll-export-fns API
We have a pattern using `?bool` for the -f/-fno- style flags. Fixup for 8e3add8736be683b450c2754bedb064811baed0e.
This commit is contained in:
parent
360ecc1a2f
commit
9181c98225
@ -1583,7 +1583,7 @@ pub const LibExeObjStep = struct {
|
||||
red_zone: ?bool = null,
|
||||
|
||||
omit_frame_pointer: ?bool = null,
|
||||
no_dll_export_fns: bool = false,
|
||||
dll_export_fns: ?bool = null,
|
||||
|
||||
subsystem: ?std.Target.SubSystem = null,
|
||||
|
||||
@ -2640,8 +2640,12 @@ pub const LibExeObjStep = struct {
|
||||
try zig_args.append("-fno-omit-frame-pointer");
|
||||
}
|
||||
}
|
||||
if (self.no_dll_export_fns) {
|
||||
try zig_args.append("-fno-dll-export-fns");
|
||||
if (self.dll_export_fns) |dll_export_fns| {
|
||||
if (dll_export_fns) {
|
||||
try zig_args.append("-fdll-export-fns");
|
||||
} else {
|
||||
try zig_args.append("-fno-dll-export-fns");
|
||||
}
|
||||
}
|
||||
if (self.disable_sanitize_c) {
|
||||
try zig_args.append("-fno-sanitize-c");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user