mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4142 from aarlt/osx-clang-stack
cmake/EthCompilerSettings.cmake: increase stacksize for apple clang
This commit is contained in:
commit
007ecc849c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user