commit 19cf9bd06283d020fa013333b04504133a2e26cb (tree)
parent 0d9a78a852f5ecd0dd94a906eab300130983320e
Author: Sahnvour <sahnvour@pm.me>
Date: Sun, 8 Sep 2019 12:07:23 +0200
use /debug:fastlink when building with msvc and debug info
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -516,6 +516,9 @@ set(OPTIMIZED_C_FLAGS "-std=c99 -O3")
set(EXE_LDFLAGS " ")
if(MSVC)
set(EXE_LDFLAGS "${EXE_LDFLAGS} /STACK:16777216")
+ if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND NOT "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
+ set(EXE_LDFLAGS "${EXE_LDFLAGS} /debug:fastlink")
+ endif()
elseif(MINGW)
set(EXE_LDFLAGS "${EXE_LDFLAGS} -Wl,--stack,16777216")
endif()