macos: avoid --export-dynamic when using system linker

master
Andrew Kelley 2020-11-08 23:04:38 -08:00
parent b0cbd0ad2d
commit e78e0f57be
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}