meson: Optimize DWARF symbols to Dr. Mingw

This commit is contained in:
Bruno Lopes 2024-05-23 15:00:52 -03:00 committed by Bruno
parent 0199faac2c
commit 2758965731
1 changed files with 6 additions and 0 deletions

View File

@ -289,6 +289,12 @@ if platform_windows and cc.get_id() == 'gcc'
compiler_args += msvc_compat_args
endif
# Optimize DWARF symbols to Dr. Mingw
# https://github.com/jrfonseca/drmingw/issues/42
if platform_windows and cc.get_id() == 'clang'
compiler_args += '-gdwarf-aranges'
endif
# Generate .pdb (CodeView) debug symbols (makes possible to debug with DIA SDK)
#pdb_support = cc.has_argument('-gcodeview') and cc.has_link_argument('-Wl,--pdb=')
#if platform_windows and pdb_support