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:
kennytm 2018-09-20 21:36:22 +08:00 committed by GitHub
commit 13cea8e05d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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