Skip to content

Commit eda67ba

Browse files
committed
Disable gdb pretty printer global section on wasm targets
The wasm targets don't support gdb anyway so there's no need for this section there.
1 parent a0d40f8 commit eda67ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_target/spec/wasm32_base.rs

+3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ pub fn options() -> TargetOptions {
140140
has_elf_tls: true,
141141
tls_model: "local-exec".to_string(),
142142

143+
// gdb scripts don't work on wasm blobs
144+
emit_debug_gdb_scripts: false,
145+
143146
.. Default::default()
144147
}
145148
}

0 commit comments

Comments
 (0)