Skip to content

Commit 94b8eb8

Browse files
committed
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
2 parents d39b076 + 2bc4c03 commit 94b8eb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_target/src/spec/wasm32_base.rs

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ pub fn options() -> TargetOptions {
8383
dll_prefix: String::new(),
8484
dll_suffix: ".wasm".to_string(),
8585
linker_is_gnu: false,
86+
eh_frame_header: false,
8687

8788
max_atomic_width: Some(64),
8889

0 commit comments

Comments
 (0)