meson icon indicating copy to clipboard operation
meson copied to clipboard

Meson NOT installing compiler (clang or gcc) generated .pdb symbols

Open brunvonlope opened this issue 1 year ago • 2 comments

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

brunvonlope avatar Mar 15 '24 13:03 brunvonlope

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! :-)

Jehan avatar Mar 26 '24 15:03 Jehan

Seems that this would be fixed by this MR: #10064

brunvonlope avatar Apr 13 '24 18:04 brunvonlope