From 8e3add8736be683b450c2754bedb064811baed0e Mon Sep 17 00:00:00 2001 From: Erik Hugne Date: Thu, 28 Apr 2022 17:34:15 +0200 Subject: std.build: make no_dll_export_fns accessible in build step --- lib/std/build.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/std/build.zig') diff --git a/lib/std/build.zig b/lib/std/build.zig index 5966002799..f4ef5be888 100644 --- 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"); } -- cgit v1.2.3