authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2021-07-09 05:15:32+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-22 22:59:05-04:00
loga38a6914875ab3bda02fb1732467228ef876074e
tree9bcc1869e50e052f64c8293cf9f6d4a1a461e2ec
parentc56b30f565966358abe8935e1f521f60660000b4

zig: -rdynamic now implies -fdll-export-fns unless the latter is explicitly set.

Fixes #9340.

1 files changed, 1 insertions(+), 1 deletions(-)

src/Compilation.zig+1-1
......@@ -991,7 +991,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {
991991 break :blk lm;
992992 } else default_link_mode;
993993
994 const dll_export_fns = if (options.dll_export_fns) |explicit| explicit else is_dyn_lib;
994 const dll_export_fns = if (options.dll_export_fns) |explicit| explicit else is_dyn_lib or options.rdynamic;
995995
996996 const libc_dirs = try detectLibCIncludeDirs(
997997 arena,