summaryrefslogtreecommitdiff
path: root/src/pal
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2016-11-24 19:07:42 +0900
committerJan Vorlicek <janvorli@microsoft.com>2016-11-24 11:07:42 +0100
commit3e60aade2971016dc8e60ac683d1121f1969ca51 (patch)
treea98a32bceb50872757686674992dd5ec5bdf6f2c /src/pal
parentf85bf7cdf194c6d87aca6a3d3f741db92f2a642e (diff)
downloadcoreclr-3e60aade2971016dc8e60ac683d1121f1969ca51.tar.gz
coreclr-3e60aade2971016dc8e60ac683d1121f1969ca51.tar.bz2
coreclr-3e60aade2971016dc8e60ac683d1121f1969ca51.zip
Supports to build PAL tests under x86/Linux (#8292)
Diffstat (limited to 'src/pal')
-rw-r--r--src/pal/tests/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/pal/tests/CMakeLists.txt b/src/pal/tests/CMakeLists.txt
index 2da2c9aa52..39d5852889 100644
--- a/src/pal/tests/CMakeLists.txt
+++ b/src/pal/tests/CMakeLists.txt
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 2.8.12.2)
-if(CLR_CMAKE_PLATFORM_ARCH_AMD64)
+if(CLR_CMAKE_PLATFORM_ARCH_I386)
+ set(PAL_CMAKE_PLATFORM_ARCH_I386 1)
+elseif(CLR_CMAKE_PLATFORM_ARCH_AMD64)
set(PAL_CMAKE_PLATFORM_ARCH_AMD64 1)
elseif(CLR_CMAKE_PLATFORM_ARCH_ARM)
set(PAL_CMAKE_PLATFORM_ARCH_ARM 1)
@@ -14,7 +16,9 @@ add_definitions(-DLP64COMPATIBLE=1)
add_definitions(-DFEATURE_PAL=1)
add_definitions(-DCORECLR=1)
add_definitions(-DPIC=1)
-if(PAL_CMAKE_PLATFORM_ARCH_AMD64)
+if(PAL_CMAKE_PLATFORM_ARCH_I386)
+ add_definitions(-DBIT32=1)
+elseif(PAL_CMAKE_PLATFORM_ARCH_AMD64)
add_definitions(-DBIT64=1)
add_definitions(-D_WIN64=1)
elseif(PAL_CMAKE_PLATFORM_ARCH_ARM)
@@ -23,7 +27,7 @@ elseif(PAL_CMAKE_PLATFORM_ARCH_ARM64)
add_definitions(-DBIT64=1)
add_definitions(-D_WIN64=1)
else()
- message(FATAL_ERROR "Only ARM, ARM64 and AMD64 is supported")
+ message(FATAL_ERROR "Only ARM, ARM64, I386, and AMD64 is supported")
endif()
# C++ emits errors and warnings for c-string literal fed into char* parameter