Skip to content

Commit d825e35

Browse files
committed
Auto merge of #66520 - alexcrichton:disable-gdb-wasm, r=eddyb
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.
2 parents aeaaf8f + 5ce09bc commit d825e35

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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
}

src/test/codegen/gdb_debug_script_load.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// ignore-tidy-linelength
22
// ignore-windows
33
// ignore-macos
4+
// ignore-wasm
5+
// ignore-emscripten
46

57
// compile-flags: -g -C no-prepopulate-passes
68

0 commit comments

Comments
 (0)