std.build: make no_dll_export_fns accessible in build step

This commit is contained in:
Erik Hugne 2022-04-28 17:34:15 +02:00 committed by GitHub
parent f7bc8900bf
commit 8e3add8736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1583,6 +1583,7 @@ pub const LibExeObjStep = struct {
red_zone: ?bool = null,
omit_frame_pointer: ?bool = null,
no_dll_export_fns: bool = false,
subsystem: ?std.Target.SubSystem = null,
@ -2639,6 +2640,9 @@ 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.disable_sanitize_c) {
try zig_args.append("-fno-sanitize-c");
}