aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2016-11-06 17:14:36 +0100
committerkwolekr <kwolekr@minetest.net>2016-11-06 11:14:36 -0500
commitad4bf2ccf966ac21b94f1778a017ac98f8957ab6 (patch)
tree545db0d55c0c333c9825f4d1410e5b1ac5a3f600 /src
parent1c570cb3906a871920f8a628a307308820004a23 (diff)
downloadminetest-ad4bf2ccf966ac21b94f1778a017ac98f8957ab6.tar.gz
minetest-ad4bf2ccf966ac21b94f1778a017ac98f8957ab6.tar.bz2
minetest-ad4bf2ccf966ac21b94f1778a017ac98f8957ab6.zip
MSVC: Generate debug information for release builds (#4674)
Replace parameters with the equivalent /Ox
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3eda27953..cb04c9425 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -696,9 +696,9 @@ if(MSVC)
# Visual Studio
# EHa enables SEH exceptions (used for catching segfaults)
- 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")
+ set(CMAKE_CXX_FLAGS_RELEASE "/EHa /Ox /GL /FD /MT /GS- /Zi /arch:SSE /fp:fast /D NDEBUG /D _HAS_ITERATOR_DEBUGGING=0 /TP")
#set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG /NODEFAULTLIB:\"libcmtd.lib\" /NODEFAULTLIB:\"libcmt.lib\"")
- set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG")
+ set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG /DEBUG /OPT:REF /OPT:ICF")
set(CMAKE_CXX_FLAGS_SEMIDEBUG "/MDd /Zi /Ob0 /O1 /RTC1")