summaryrefslogtreecommitdiff
path: root/src/pal/src/CMakeLists.txt
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2017-05-09 11:03:32 +0200
committerGitHub <noreply@github.com>2017-05-09 11:03:32 +0200
commit3437a820fdc94caa3d1775bcee802b056f3adce2 (patch)
treeff5c4550017c5186c67167de61ab460c3368f05b /src/pal/src/CMakeLists.txt
parenteac27ca7fb6e80a0a1af44b889469b2818c45a9a (diff)
downloadcoreclr-3437a820fdc94caa3d1775bcee802b056f3adce2.tar.gz
coreclr-3437a820fdc94caa3d1775bcee802b056f3adce2.tar.bz2
coreclr-3437a820fdc94caa3d1775bcee802b056f3adce2.zip
Enable build on old Linux (#11414)
This change enables building coreclr on old Linux distros that don't have PR_SET_PTRACER and don't have _xstate struct in the standard sigcontext.h header.
Diffstat (limited to 'src/pal/src/CMakeLists.txt')
-rw-r--r--src/pal/src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pal/src/CMakeLists.txt b/src/pal/src/CMakeLists.txt
index 145c2c9ed9..b8a9fe9e46 100644
--- a/src/pal/src/CMakeLists.txt
+++ b/src/pal/src/CMakeLists.txt
@@ -93,10 +93,10 @@ elseif(PAL_CMAKE_PLATFORM_ARCH_I386)
set(PAL_ARCH_SOURCES_DIR i386)
endif()
-if(CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT CLR_CMAKE_PLATFORM_ALPINE_LINUX)
+if(PAL_CMAKE_PLATFORM_ARCH_AMD64 AND CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT CLR_CMAKE_PLATFORM_ALPINE_LINUX)
# Currently the _xstate is not available on Alpine Linux
add_definitions(-DXSTATE_SUPPORTED)
-endif(CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT CLR_CMAKE_PLATFORM_ALPINE_LINUX)
+endif(PAL_CMAKE_PLATFORM_ARCH_AMD64 AND CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT CLR_CMAKE_PLATFORM_ALPINE_LINUX)
if(CLR_CMAKE_PLATFORM_ALPINE_LINUX)
# Setting RLIMIT_NOFILE breaks debugging of coreclr on Alpine Linux for some reason