We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--no-demangle
1 parent bf01bcb commit c86b152Copy full SHA for c86b152
src/librustc_codegen_ssa/back/linker.rs
@@ -1037,6 +1037,11 @@ impl<'a> Linker for WasmLd<'a> {
1037
// indicative of bugs, let's prevent them.
1038
self.cmd.arg("--fatal-warnings");
1039
1040
+ // LLD only implements C++-like demangling, which doesn't match our own
1041
+ // mangling scheme. Tell LLD to not demangle anything and leave it up to
1042
+ // us to demangle these symbols later.
1043
+ self.cmd.arg("--no-demangle");
1044
+
1045
::std::mem::replace(&mut self.cmd, Command::new(""))
1046
}
1047
0 commit comments