diff options
| author | David Koloski <djkoloski@gmail.com> | 2024-01-23 19:10:17 +0000 |
|---|---|---|
| committer | David Koloski <djkoloski@gmail.com> | 2024-01-23 19:10:17 +0000 |
| commit | 849d884141530c1e5b04a7cd66a0332fe9dd1d7a (patch) | |
| tree | 1098127d5ab04b55c2a92b5c3f44b1e9c7b18803 /compiler/rustc_target/src/spec/base/wasm.rs | |
| parent | 6265a95b3735a51cca1d48b8bbc3c8a6a035e15b (diff) | |
| download | rust-849d884141530c1e5b04a7cd66a0332fe9dd1d7a.tar.gz rust-849d884141530c1e5b04a7cd66a0332fe9dd1d7a.zip | |
Remove --fatal-warnings on wasm targets
These were added with good intentions, but a recent change in LLVM 18 emits a warning while examining .rmeta sections in .rlib files. Since this flag is a nice-to-have and users can update their LLVM linker independently of rustc's LLVM version, we can just omit the flag.
Diffstat (limited to 'compiler/rustc_target/src/spec/base/wasm.rs')
| -rw-r--r-- | compiler/rustc_target/src/spec/base/wasm.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_target/src/spec/base/wasm.rs b/compiler/rustc_target/src/spec/base/wasm.rs index 87ade9e58cf..4b4d2aca26e 100644 --- a/compiler/rustc_target/src/spec/base/wasm.rs +++ b/compiler/rustc_target/src/spec/base/wasm.rs @@ -38,9 +38,6 @@ pub fn options() -> TargetOptions { // supposed to be imported and have all other symbols generate errors if // they remain undefined. concat!($prefix, "--allow-undefined"), - // Rust code should never have warnings, and warnings are often - // indicative of bugs, let's prevent them. - concat!($prefix, "--fatal-warnings"), // LLD only implements C++-like demangling, which doesn't match our own // mangling scheme. Tell LLD to not demangle anything and leave it up to // us to demangle these symbols later. Currently rustc does not perform |
