summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-06-08 22:48:12 +0000
committerChris Bieneman <beanz@apple.com>2016-06-08 22:48:12 +0000
commite94aa7a3e1cc500623200994cd9b1872552ecb5b (patch)
tree177c078336de61ba022c314de3817afb278f4774 /llvm/cmake/modules
parent6650b02d26285f80d2e1a1f7158e3578ce5160d6 (diff)
downloadbcm5719-llvm-e94aa7a3e1cc500623200994cd9b1872552ecb5b.tar.gz
bcm5719-llvm-e94aa7a3e1cc500623200994cd9b1872552ecb5b.zip
[CMake] Cleanup version check for 2.8.11
We are always greater than CMake 2.8.11, so we don't need this check. llvm-svn: 272220
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake14
1 files changed, 6 insertions, 8 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 64269c3ebfd..92da7c96cdf 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -227,14 +227,12 @@ if( MSVC )
include(ChooseMSVCCRT)
- if( NOT (${CMAKE_VERSION} VERSION_LESS 2.8.11) )
- # set stack reserved size to ~10MB
- # CMake previously automatically set this value for MSVC builds, but the
- # behavior was changed in CMake 2.8.11 (Issue 12437) to use the MSVC default
- # value (1 MB) which is not enough for us in tasks such as parsing recursive
- # C++ templates in Clang.
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10000000")
- endif()
+ # set stack reserved size to ~10MB
+ # CMake previously automatically set this value for MSVC builds, but the
+ # behavior was changed in CMake 2.8.11 (Issue 12437) to use the MSVC default
+ # value (1 MB) which is not enough for us in tasks such as parsing recursive
+ # C++ templates in Clang.
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10000000")
if( MSVC11 )
add_llvm_definitions(-D_VARIADIC_MAX=10)
OpenPOWER on IntegriCloud