configure: enable nasm debug information also for non-ELF targets

The default NASM selection of debug information formats should cover all
cases nicely. See `nasm -h -F` for the default and supported formats.

This commit allows emitting debug information for macho{32,64} (DWARF)
and win{32,64} (CodeView), where previously only ELF targets would
get debug information.

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow
2026-03-15 10:42:45 +01:00
parent 238df21a4f
commit 0f600cbc16

5
configure vendored
View File

@@ -6780,7 +6780,6 @@ EOF
x86asmexe_probe=$1
if test_cmd $x86asmexe_probe -v; then
x86asmexe=$x86asmexe_probe
x86asm_debug="-g -F dwarf"
X86ASM_DEPFLAGS='-MD $(@:.o=.d)'
fi
check_x86asm x86asm "movbe ecx, [5]"
@@ -6794,9 +6793,7 @@ EOF
disabled x86asm && die "nasm not found or too old. Please install/update nasm or use --disable-x86asm for a build without hand-optimized assembly."
X86ASMFLAGS="-f $objformat"
test -n "$extern_prefix" && append X86ASMFLAGS "-DPREFIX"
case "$objformat" in
elf*) enabled debug && append X86ASMFLAGS $x86asm_debug ;;
esac
enabled debug && append X86ASMFLAGS "-g"
enabled avx512 && check_x86asm avx512_external "vmovdqa32 [eax]{k1}{z}, zmm0"
enabled avx512icl && check_x86asm avx512icl_external "vpdpwssds zmm31{k1}{z}, zmm29, zmm28"