This patch enables PDB generation for Release build, which has slightly different optimize option with RelWithDebInfo on windows.
This helps to know slow part of Release build when profiling.
Differential D42632
Generate PDB files for profiling even in Release build takuto.ikuta on Jan 28 2018, 10:07 PM. Authored by
Details This patch enables PDB generation for Release build, which has slightly different optimize option with RelWithDebInfo on windows. This helps to know slow part of Release build when profiling.
Diff Detail
Event TimelineComment Actions True, link time would probably be affected. But I think if anyone is concerned about this, they can add -DLLVM_DISABLE_PDB. Having it generate a PDB should be the default IMO. Comment Actions I don't see LLVM_DISABLE_PDB option being added anywhere, was it accidentally omitted in this patch? I want to avoid producing .pdb as I have to fit building LLVM under 1 hour due to CI limitation and it already takes 53 minutes without producing .pdb.
|
Doesn't /DEBUG disable /OPT:REF and /OPT:ICF by default? I think you probably want "/DEBUG /OPT:REF /OPT:ICF" instead of just "/DEBUG".