We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--no-demangle
1 parent 4d4a4e7 commit 67053e5Copy full SHA for 67053e5
src/librustc_codegen_utils/linker.rs
@@ -1085,6 +1085,11 @@ impl<'a> Linker for WasmLd<'a> {
1085
// indicative of bugs, let's prevent them.
1086
self.cmd.arg("--fatal-warnings");
1087
1088
+ // LLD only implements C++-like demangling, which doesn't match our own
1089
+ // mangling scheme. Tell LLD to not demangle anything and leave it up to
1090
+ // us to demangle these symbols later.
1091
+ self.cmd.arg("--no-demangle");
1092
+
1093
let mut cmd = Command::new("");
1094
::std::mem::swap(&mut cmd, &mut self.cmd);
1095
cmd
0 commit comments