diff --git a/src/coreclr/nativeaot/CMakeLists.txt b/src/coreclr/nativeaot/CMakeLists.txt index 91fa37cfad0907..74bf4449e24c7c 100644 --- a/src/coreclr/nativeaot/CMakeLists.txt +++ b/src/coreclr/nativeaot/CMakeLists.txt @@ -37,7 +37,7 @@ if(CLR_CMAKE_HOST_UNIX) endif(CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_I386) endif (CLR_CMAKE_HOST_UNIX) -if(CLR_CMAKE_HOST_ALPINE_LINUX) +if(CLR_CMAKE_TARGET_LINUX_MUSL) # Fix up the main thread stack size for MUSL to more reasonable size. # TODO: https://github.com/dotnet/runtimelab/issues/791 add_definitions(-DENSURE_PRIMARY_STACK_SIZE) diff --git a/src/native/libs/System.Native/CMakeLists.txt b/src/native/libs/System.Native/CMakeLists.txt index 8580bcfaa2571c..2c6249cc516273 100644 --- a/src/native/libs/System.Native/CMakeLists.txt +++ b/src/native/libs/System.Native/CMakeLists.txt @@ -4,7 +4,7 @@ if (NOT CLR_CMAKE_TARGET_MACCATALYST AND NOT CLR_CMAKE_TARGET_IOS AND NOT CLR_CM add_definitions(-DHAS_CONSOLE_SIGNALS) endif () -if (CLR_CMAKE_HOST_ALPINE_LINUX) +if (CLR_CMAKE_TARGET_LINUX_MUSL) # Fix up the thread stack size for MUSL to more reasonable size. # TODO: https://github.com/dotnet/runtimelab/issues/791 add_definitions(-DENSURE_PRIMARY_STACK_SIZE)