meson
meson copied to clipboard
Meson NOT installing compiler (clang or gcc) generated .pdb symbols
Describe the bug When generating .pdb debug symbols with the compiler using the ninja backend (this is possible since 2017 with clang and 2023 with gcc), meson only copy to the install prefix the binaries, not the debug symbols.
To Reproduce
Add this to the meson.build file:
if platform_windows
compiler_args += '-gcodeview'
linker_args += '-Wl,--pdb='
endif
Expected behavior Generated .pdb debug symbols are copied to install prefix.
system parameters
- Native build
- Windows 11
- Python 3.11
- Meson 1.3.1
- Ninja 1.11.1
Just for info, this is important for us at GIMP to be able to install the debug data. Right now, we'd have to add custom install rules. But since these are apparently standard debug format on Windows (AFAIU), it would be nice if it could be handled automatically (maybe behind some option to activate the handling, or something!).
Thanks! :-)
Seems that this would be fixed by this MR: #10064