macos: avoid --export-dynamic when using system linker
parent
b0cbd0ad2d
commit
e78e0f57be
|
@ -548,7 +548,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void {
|
|||
|
||||
try argv.append("-demangle");
|
||||
|
||||
if (self.base.options.rdynamic) {
|
||||
if (self.base.options.rdynamic and !self.base.options.system_linker_hack) {
|
||||
try argv.append("--export-dynamic");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue