summaryrefslogtreecommitdiffstats
path: root/CompileFlags.cmake
diff options
context:
space:
mode:
authorZsolt Parragi <zsolt.parragi@cancellar.hu>2019-02-20 11:19:58 (GMT)
committerZsolt Parragi <zsolt.parragi@cancellar.hu>2019-05-23 21:35:42 (GMT)
commit26af0b25e77ba48b6d015adef6d54b6725fd7977 (patch)
treeddc75d90befea49017eb05cd8b409568c0bcf405 /CompileFlags.cmake
parentd44c0db0b2f8fa24b932b5c0d506fc8842baffd6 (diff)
downloadCMake-26af0b25e77ba48b6d015adef6d54b6725fd7977.zip
CMake-26af0b25e77ba48b6d015adef6d54b6725fd7977.tar.gz
CMake-26af0b25e77ba48b6d015adef6d54b6725fd7977.tar.bz2
cmake: use correct stack size with gnu mode clang on windows
Diffstat (limited to 'CompileFlags.cmake')
-rw-r--r--CompileFlags.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake
index c8a039a..c231ede 100644
--- a/CompileFlags.cmake
+++ b/CompileFlags.cmake
@@ -21,6 +21,12 @@ if(MSVC)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stack:10000000")
endif()
+if(CMAKE_CXX_COMPILER_ID STREQUAL Clang
+ AND "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC"
+ AND "x${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "xGNU")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Xlinker -stack:20000000")
+endif()
+
#silence duplicate symbol warnings on AIX
if(CMAKE_SYSTEM_NAME MATCHES "AIX")
if(NOT CMAKE_COMPILER_IS_GNUCXX)