commit 8e3add8736be683b450c2754bedb064811baed0e (tree)
parent f7bc8900bfef87f67230ac5af7edb2d7766b3ba3
Author: Erik Hugne <erik.hugne@gmail.com>
Date: Thu, 28 Apr 2022 17:34:15 +0200
std.build: make no_dll_export_fns accessible in build step
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/std/build.zig b/lib/std/build.zig
@@ -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");
}