We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f98469 commit b3f86e4Copy full SHA for b3f86e4
cmake/compilers.cmake
@@ -20,6 +20,9 @@ if(MSVC)
20
# Create PDB for Release as long as debug info was generated during compile.
21
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELEASE " /DEBUG /OPT:REF /OPT:ICF")
22
string(APPEND CMAKE_SHARED_LINKER_FLAGS_RELEASE " /DEBUG /OPT:REF /OPT:ICF")
23
+
24
+ # /INCREMENTAL:NO prevents PDB size bloat in Debug configuration(s).
25
+ add_link_options("/INCREMENTAL:NO")
26
else()
27
# We go a bit wild here and assume any other compiler we are going to use supports -g for debug info.
28
string(APPEND CMAKE_CXX_FLAGS_RELEASE " -g")
0 commit comments