about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-06 01:58:35 +0000
committerbors <bors@rust-lang.org>2020-09-06 01:58:35 +0000
commit94b8eb80abf68d7505aca3562a625ec00fa394a1 (patch)
tree6b3a7a24692a6405167f19be66db5fa26ab32f96 /compiler
parentd39b076489a8686961204721001ccd9a9e9a5e0a (diff)
parent2bc4c03eb8180f2852f773054c75cfcfe42e9cc3 (diff)
downloadrust-94b8eb80abf68d7505aca3562a625ec00fa394a1.tar.gz
rust-94b8eb80abf68d7505aca3562a625ec00fa394a1.zip
Auto merge of #76307 - sunfishcode:wasm-no-eh-frame-header, r=alexcrichton
Disable use of `--eh-frame-hdr` on wasm32.

Set wasm32's `TargetOptions::eh_frame_header` to false so that we don't pass `--eh-frame-hdr` to `wasm-ld`, which doesn't support that flag.

r? @alexcrichton
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_target/src/spec/wasm32_base.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/wasm32_base.rs b/compiler/rustc_target/src/spec/wasm32_base.rs
index 62fc8f06183..a7957d84cbe 100644
--- a/compiler/rustc_target/src/spec/wasm32_base.rs
+++ b/compiler/rustc_target/src/spec/wasm32_base.rs
@@ -83,6 +83,7 @@ pub fn options() -> TargetOptions {
         dll_prefix: String::new(),
         dll_suffix: ".wasm".to_string(),
         linker_is_gnu: false,
+        eh_frame_header: false,
 
         max_atomic_width: Some(64),