From f8d87fc2939f0fa9a795aaf16799bc56d77af1ca Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Thu, 15 May 2025 19:33:20 -0300 Subject: [PATCH] meson: Do not generate CodeView symbols with GCC Since GCC 15.1 CodeView generation is broken --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 7a4914fdca..1d2bba6232 100644 --- a/meson.build +++ b/meson.build @@ -335,7 +335,7 @@ endif # Generate native .pdb (CodeView) debug symbols (for DIA or DbgHelp debuggers and LLDB) pdb_support = cc.has_argument('-gcodeview') and cc.has_link_argument('-Wl,--pdb=') -if platform_windows and pdb_support +if platform_windows and pdb_support and cc.get_id() == 'clang' compiler_args += '-gcodeview' linker_args += '-Wl,--pdb=' endif @@ -2140,7 +2140,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 pdb_support +if platform_windows and pdb_support and cc.get_id() == 'clang' install_win_debug_script = find_program('build/windows/2_bundle-gimp-uni_sym.py') meson.add_install_script(install_win_debug_script) endif