diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-18 10:49:09 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-08-19 16:45:16 -0700 |
| commit | 437311756d88984d9bf3057d9cd93986c15434fa (patch) | |
| tree | 9845ed7d4ad76a191610b885061c26050bd7c349 /src/Compilation.zig | |
| parent | 35f62bc7aeca5c84f4ddda5736ce902018d23964 (diff) | |
| download | zig-437311756d88984d9bf3057d9cd93986c15434fa.tar.gz zig-437311756d88984d9bf3057d9cd93986c15434fa.zip | |
LLVM: add DLL export attribute
This was present in stage1 but missing from self-hosted.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 84dd273947..0914685c77 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1231,7 +1231,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { break :blk lm; } else default_link_mode; - const dll_export_fns = if (options.dll_export_fns) |explicit| explicit else is_dyn_lib or options.rdynamic; + const dll_export_fns = options.dll_export_fns orelse (is_dyn_lib or options.rdynamic); const libc_dirs = try detectLibCIncludeDirs( arena, |
