Rollup merge of #54258 - alexcrichton:lld-fatal-warnings, r=eddyb
Enable fatal warnings for the wasm32 linker Historically LLD has emitted warnings for various reasons but all the bugs have since been fixed (yay!) and by enabling fatal warnings we should be able to head off bugs like #53390 sooner.
This commit is contained in:
commit
13cea8e05d
1 changed files with 4 additions and 0 deletions
|
|
@ -1071,6 +1071,10 @@ impl<'a> Linker for WasmLd<'a> {
|
|||
// Make the default table accessible
|
||||
self.cmd.arg("--export-table");
|
||||
|
||||
// Rust code should never have warnings, and warnings are often
|
||||
// indicative of bugs, let's prevent them.
|
||||
self.cmd.arg("--fatal-warnings");
|
||||
|
||||
let mut cmd = Command::new("");
|
||||
::std::mem::swap(&mut cmd, &mut self.cmd);
|
||||
cmd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue