Clang for windows: Release with pdb option generates huge binaries

i’m not sure if this is a bug or a missing option. when building release code with clang in msvc my binaries are way to big when compiling with option /Zi. it seems the linker doesn’t strip out all the debug informations. i did a full rebuild once with /Zi and once with no debug informations and the resulting binaries ended up with 17 MB vs 7 MB … in my opinion all the debug informations should go into the pdb file. at least this is what i see when usign the intel compiler or msvc compiler.


Clang is currently generating dwarf for consumption by LLDB. There isn’t yet support for split debug info. We probably shouldn’t be generating dwarf when clang-cl gets -Zi.