summaryrefslogtreecommitdiff
path: root/src/pal/src/CMakeLists.txt
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2018-03-08 12:44:33 +0100
committerGitHub <noreply@github.com>2018-03-08 12:44:33 +0100
commita8d2e3f06ce3c345ff79537e395c95e1e51fa9be (patch)
treec650567f03322502d7e81f0edf6634338e56b09c /src/pal/src/CMakeLists.txt
parent9925a52490d161e8eb9201953c68f8d9dd1850ce (diff)
downloadcoreclr-a8d2e3f06ce3c345ff79537e395c95e1e51fa9be.tar.gz
coreclr-a8d2e3f06ce3c345ff79537e395c95e1e51fa9be.tar.bz2
coreclr-a8d2e3f06ce3c345ff79537e395c95e1e51fa9be.zip
Fix ensuring primary stack size (#16698)
1. Make it happen for Alpine only (it was incorrectly being done for OSX too. 2. Do it only when the Initialize is called for CLR initialization
Diffstat (limited to 'src/pal/src/CMakeLists.txt')
-rw-r--r--src/pal/src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pal/src/CMakeLists.txt b/src/pal/src/CMakeLists.txt
index 56df33fa3f..a3ccd724f4 100644
--- a/src/pal/src/CMakeLists.txt
+++ b/src/pal/src/CMakeLists.txt
@@ -101,6 +101,9 @@ endif(PAL_CMAKE_PLATFORM_ARCH_AMD64 AND CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT
if(CLR_CMAKE_PLATFORM_ALPINE_LINUX)
# Setting RLIMIT_NOFILE breaks debugging of coreclr on Alpine Linux for some reason
add_definitions(-DDONT_SET_RLIMIT_NOFILE)
+ # On Alpine Linux, we need to ensure that the reported stack range for the primary thread is
+ # larger than the initial committed stack size.
+ add_definitions(-DENSURE_PRIMARY_STACK_SIZE)
endif(CLR_CMAKE_PLATFORM_ALPINE_LINUX)
# turn off capability to remove unused functions (which was enabled in debug build with sanitizers)