Commit 8e3add8736

Erik Hugne <erik.hugne@gmail.com>
2022-04-28 17:34:15
std.build: make no_dll_export_fns accessible in build step
1 parent f7bc890
Changed files (1)
lib
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");
         }