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/Module.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/Module.zig')
| -rw-r--r-- | src/Module.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig index 3ae61c264f..3577115ded 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -6529,3 +6529,7 @@ pub fn addGlobalAssembly(mod: *Module, decl_index: Decl.Index, source: []const u mod.global_assembly.putAssumeCapacityNoClobber(decl_index, duped_source); } + +pub fn wantDllExports(mod: Module) bool { + return mod.comp.bin_file.options.dll_export_fns and mod.getTarget().os.tag == .windows; +} |
