Skip to content

Commit ad4bf2c

Browse files
SmallJokerkwolekr
authored andcommittedNov 6, 2016
MSVC: Generate debug information for release builds (#4674)
Replace parameters with the equivalent /Ox
1 parent 1c570cb commit ad4bf2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎src/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,9 @@ if(MSVC)
696696
# Visual Studio
697697

698698
# EHa enables SEH exceptions (used for catching segfaults)
699-
set(CMAKE_CXX_FLAGS_RELEASE "/EHa /Ox /Ob2 /Oi /Ot /Oy /GL /FD /MT /GS- /arch:SSE /fp:fast /D NDEBUG /D _HAS_ITERATOR_DEBUGGING=0 /TP")
699+
set(CMAKE_CXX_FLAGS_RELEASE "/EHa /Ox /GL /FD /MT /GS- /Zi /arch:SSE /fp:fast /D NDEBUG /D _HAS_ITERATOR_DEBUGGING=0 /TP")
700700
#set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG /NODEFAULTLIB:\"libcmtd.lib\" /NODEFAULTLIB:\"libcmt.lib\"")
701-
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG")
701+
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG /DEBUG /OPT:REF /OPT:ICF")
702702

703703
set(CMAKE_CXX_FLAGS_SEMIDEBUG "/MDd /Zi /Ob0 /O1 /RTC1")
704704

0 commit comments

Comments
 (0)
Please sign in to comment.