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-08-31 13:32:27-07:00
loga45c0c503383d6312d676d114e4067efcac46791
treeba960f7b8ce0837a8ba4b9a197b0b93372cf0227
parent7b9612a92245ccb3be3cac1690fc0a58077336c7

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
......@@ -963,7 +963,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {
963963 break :blk lm;
964964 } else default_link_mode;
965965
966 const dll_export_fns = if (options.dll_export_fns) |explicit| explicit else is_dyn_lib;
966 const dll_export_fns = if (options.dll_export_fns) |explicit| explicit else is_dyn_lib or options.rdynamic;
967967
968968 const libc_dirs = try detectLibCIncludeDirs(
969969 arena,