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.
This commit is contained in:
Alex Crichton 2019-11-18 07:41:10 -08:00
parent fdc0011561
commit 5ce09bcfa2
2 changed files with 5 additions and 0 deletions

View File

@ -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()
}
}

View File

@ -1,6 +1,8 @@
// ignore-tidy-linelength
// ignore-windows
// ignore-macos
// ignore-wasm
// ignore-emscripten
// compile-flags: -g -C no-prepopulate-passes