From 0f600cbc16b7903703b47d23981b636c94a41c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 15 Mar 2026 10:42:45 +0100 Subject: [PATCH] configure: enable nasm debug information also for non-ELF targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- configure | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/configure b/configure index 8f9fb04115..fb1baf2eac 100755 --- a/configure +++ b/configure @@ -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"