mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 15:43:06 +00:00
zig: -rdynamic now implies -fdll-export-fns unless the latter is explicitly set.
Fixes #9340.
This commit is contained in:
parent
c56b30f565
commit
a38a691487
@ -991,7 +991,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;
|
||||
const dll_export_fns = if (options.dll_export_fns) |explicit| explicit else is_dyn_lib or options.rdynamic;
|
||||
|
||||
const libc_dirs = try detectLibCIncludeDirs(
|
||||
arena,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user