> On 22. Mar 2026, at 12:56, Michael Tokarev <[email protected]> wrote: > > Overall, I think there's no need to have separate option especially > for pdb, - it can be enabled on windows when --enable-debug is > specified (or is it --debug? I don't remember). > > This code: > > option_cflags = (get_option('debug') ? ['-g'] : []) > > can be extended to add the necessary compiler options.
Hello, I think that’s a bit suboptimal because while Clang can generate PDBs, the same isn’t true for a GCC build, where gdb + DWARF is in practice preferred instead. A converter exists at https://github.com/rainers/cv2pdb however to cover the GCC case but the compiler won’t do it by itself. And people might also want to use gdb/lldb when they can :) Thanks, -Mohamed
