diff options
author | Chris Bieneman <beanz@apple.com> | 2016-06-08 22:48:12 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-06-08 22:48:12 +0000 |
commit | e94aa7a3e1cc500623200994cd9b1872552ecb5b (patch) | |
tree | 177c078336de61ba022c314de3817afb278f4774 /llvm/cmake/modules | |
parent | 6650b02d26285f80d2e1a1f7158e3578ce5160d6 (diff) | |
download | bcm5719-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.cmake | 14 |
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) |