Enable .pdb file generation on Windows

Add compiler flag for generating program database file (PDB) for Visual Studio.
This commit is contained in:
Jingyu Zhou 2019-03-01 16:43:17 -08:00 committed by Alex Miller
parent 89e5be7d70
commit bdf0fc4ffb
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ set(CMAKE_REQUIRED_LIBRARIES c)
if(WIN32)
add_compile_options(/W3 /EHsc /std:c++14 /bigobj)
add_compile_options(/W3 /EHsc /std:c++14 /bigobj /Zi)
else()
if(USE_GOLD_LINKER)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags")