From 2f0bfc569bf2b7de8c3b17955ae676a5dc0bee32 Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Wed, 1 Oct 2025 20:13:33 -0300 Subject: [PATCH] meson: Fix wrong debugging_format detection on clang-cl and msvc --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index cb505ea994..eb4a46fb51 100644 --- a/meson.build +++ b/meson.build @@ -334,6 +334,9 @@ if get_option('buildtype') == 'debug' or get_option('buildtype') == 'debugoptimi if not platform_windows # DWARF symbols for GCC and LLDB on Unix debugging_format = 'native' + elif cc.get_argument_syntax() == 'msvc' + # CodeView symbols for DIA or DbgHelp debuggers and LLDB on Windows + debugging_format = 'Native' elif platform_windows and get_option('win-debugging') == 'native' and cc.has_argument('-gcodeview') and cc.has_link_argument('-Wl,--pdb=') and cc.get_id() == 'clang' # CodeView symbols for DIA or DbgHelp debuggers and LLDB on Windows debugging_format = 'native' @@ -2046,7 +2049,7 @@ pkgconfig.generate(libgimpui, # Install native debug data (.pdb) on Windows # Ideally meson should take care of it automatically. # See: https://github.com/mesonbuild/meson/issues/12977 -if platform_windows and debugging_format == 'native' +if platform_windows and debugging_format == 'native' and cc.get_argument_syntax() != 'msvc' install_win_debug_script = find_program('build/windows/2_bundle-gimp-uni_sym.py') meson.add_install_script(install_win_debug_script) endif