Skip to content

Commit

Permalink
Rollup merge of rust-lang#76307 - sunfishcode:wasm-no-eh-frame-header…
Browse files Browse the repository at this point in the history
…, 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
  • Loading branch information
Dylan-DPC authored Sep 5, 2020
2 parents 41eb03b + 2bc4c03 commit 9310922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_target/src/spec/wasm32_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down

0 comments on commit 9310922

Please sign in to comment.