refactor: simplify needs_gdb_debug_scripts_section
This commit is contained in:
parent
ea08bdf30c
commit
1eed662fc4
4 changed files with 3 additions and 2 deletions
|
|
@ -47,6 +47,7 @@ pub fn opts() -> TargetOptions {
|
|||
exe_allocation_crate: super::maybe_jemalloc(),
|
||||
has_elf_tls: version >= (10, 7),
|
||||
abi_return_struct_as_int: true,
|
||||
emit_debug_gdb_scripts: false,
|
||||
.. Default::default()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ pub fn opts() -> TargetOptions {
|
|||
],
|
||||
custom_unwind_resume: true,
|
||||
abi_return_struct_as_int: true,
|
||||
emit_debug_gdb_scripts: false,
|
||||
|
||||
.. Default::default()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ pub fn opts() -> TargetOptions {
|
|||
crt_static_allows_dylibs: true,
|
||||
crt_static_respected: true,
|
||||
abi_return_struct_as_int: true,
|
||||
emit_debug_gdb_scripts: false,
|
||||
|
||||
.. Default::default()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,8 +83,6 @@ pub fn needs_gdb_debug_scripts_section(cx: &CodegenCx) -> bool {
|
|||
"omit_gdb_pretty_printer_section");
|
||||
|
||||
!omit_gdb_pretty_printer_section &&
|
||||
!cx.sess().target.target.options.is_like_osx &&
|
||||
!cx.sess().target.target.options.is_like_windows &&
|
||||
cx.sess().opts.debuginfo != NoDebugInfo &&
|
||||
cx.sess().target.target.options.emit_debug_gdb_scripts
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue