diff options
author | Alexander Arlt <alexander.arlt@arlt-labs.com> | 2018-05-15 21:11:38 +0800 |
---|---|---|
committer | Alexander Arlt <alexander.arlt@arlt-labs.com> | 2018-05-15 21:11:38 +0800 |
commit | 4aed41d9b6ae73e22db9b6b8d20c8c875fcdc2b5 (patch) | |
tree | d37fa55cdd9bb1685e920c09aa6521d3ce8994e6 | |
parent | 63861aac4a13f1d90680206854d662752a6cdce5 (diff) | |
download | dexon-solidity-4aed41d9b6ae73e22db9b6b8d20c8c875fcdc2b5.tar dexon-solidity-4aed41d9b6ae73e22db9b6b8d20c8c875fcdc2b5.tar.gz dexon-solidity-4aed41d9b6ae73e22db9b6b8d20c8c875fcdc2b5.tar.bz2 dexon-solidity-4aed41d9b6ae73e22db9b6b8d20c8c875fcdc2b5.tar.lz dexon-solidity-4aed41d9b6ae73e22db9b6b8d20c8c875fcdc2b5.tar.xz dexon-solidity-4aed41d9b6ae73e22db9b6b8d20c8c875fcdc2b5.tar.zst dexon-solidity-4aed41d9b6ae73e22db9b6b8d20c8c875fcdc2b5.zip |
cmake/EthCompilerSettings.cmake: increase stacksize for apple clang
- normally 16MB is enough to run all tests, but it will exceed the stack, if -DSANITIZE=address is used.
-rw-r--r-- | cmake/EthCompilerSettings.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake index c73536ad..683d1d2e 100644 --- a/cmake/EthCompilerSettings.cmake +++ b/cmake/EthCompilerSettings.cmake @@ -62,8 +62,9 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA # Additional Clang-specific compiler settings. elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") if ("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin") - # Set stack size to 16MB - by default Apple's clang defines a stack size of 8MB, some tests require more. - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-stack_size -Wl,0x1000000") + # Set stack size to 32MB - by default Apple's clang defines a stack size of 8MB. + # Normally 16MB is enough to run all tests, but it will exceed the stack, if -DSANITIZE=address is used. + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-stack_size -Wl,0x2000000") endif() # Some Linux-specific Clang settings. We don't want these for OS X. |