diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-06-10 22:32:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-10 22:32:30 +0200 |
| commit | 35ba4dc03163b30616a7232bb3344d84bd83769e (patch) | |
| tree | 4d8e077b0c6f9a08c70ddc624d1fb0f24240bcfe /compiler/rustc_target/src | |
| parent | 07771137eba1af7951acd64c5cedc6915f6b7984 (diff) | |
| parent | b32238ae6f788bf14b24c46e1e9224c21dd59846 (diff) | |
| download | rust-35ba4dc03163b30616a7232bb3344d84bd83769e.tar.gz rust-35ba4dc03163b30616a7232bb3344d84bd83769e.zip | |
Rollup merge of #97928 - hoodmane:emscripten-no-assertions, r=tlively
Removes debug settings from wasm32_unknown_emscripten default link args This is a debug setting. We should only make debug builds if user requests a debug build. Currently this is inserted in release builds. Furthermore, it would be better to insert these settings in --pre-link-args because then it would be possible to override them if appropriate. Because these are inserted at the end, it is necessary to patch emscripten to remove them. ``@sbc100``
Diffstat (limited to 'compiler/rustc_target/src')
| -rw-r--r-- | compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs index b34cac41d78..975051100b0 100644 --- a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs +++ b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs @@ -16,15 +16,7 @@ pub fn target() -> Target { let mut post_link_args = LinkArgs::new(); post_link_args.insert( LinkerFlavor::Em, - vec![ - "-s".into(), - "ERROR_ON_UNDEFINED_SYMBOLS=1".into(), - "-s".into(), - "ASSERTIONS=1".into(), - "-s".into(), - "ABORTING_MALLOC=0".into(), - "-Wl,--fatal-warnings".into(), - ], + vec!["-sABORTING_MALLOC=0".into(), "-Wl,--fatal-warnings".into()], ); let opts = TargetOptions { |
