Skip to content
Permalink
Browse files

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.
  • Loading branch information
alexcrichton committed Nov 18, 2019
1 parent fdc0011 commit 5ce09bcfa26634cb9a149bbc6363b39d96363bcb
Showing with 5 additions and 0 deletions.
  1. +3 −0 src/librustc_target/spec/wasm32_base.rs
  2. +2 −0 src/test/codegen/gdb_debug_script_load.rs
@@ -140,6 +140,9 @@ pub fn options() -> TargetOptions {
has_elf_tls: true,
tls_model: "local-exec".to_string(),

// gdb scripts don't work on wasm blobs
emit_debug_gdb_scripts: false,

.. Default::default()
}
}
@@ -1,6 +1,8 @@
// ignore-tidy-linelength
// ignore-windows
// ignore-macos
// ignore-wasm
// ignore-emscripten

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

0 comments on commit 5ce09bc

Please sign in to comment.
You can’t perform that action at this time.