summaryrefslogtreecommitdiff
path: root/configurecompiler.cmake
diff options
context:
space:
mode:
authorEgor Chesakov <Egor.Chesakov@microsoft.com>2018-08-17 20:52:14 (GMT)
committerEgor Chesakov <Egor.Chesakov@microsoft.com>2018-09-10 22:42:43 (GMT)
commit1e7a3d97ffba7d5721112fd451a6f4cd41a9b5d2 (patch)
tree96b5934b93d11dfc9723a4eb18e9c510d3f4f6af /configurecompiler.cmake
parentccf1c10ad9812c9fc99237997f491c4036f6a5a4 (diff)
downloadcoreclr-1e7a3d97ffba7d5721112fd451a6f4cd41a9b5d2.zip
coreclr-1e7a3d97ffba7d5721112fd451a6f4cd41a9b5d2.tar.gz
coreclr-1e7a3d97ffba7d5721112fd451a6f4cd41a9b5d2.tar.bz2
Build Hostx86/arm32 crossgen when CROSSCOMPILE is "1" and Hostx64/arm32 crossgen otherwise in configurecompiler.cmake
Diffstat (limited to 'configurecompiler.cmake')
-rw-r--r--configurecompiler.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake
index 2d1672b..7ee19ba 100644
--- a/configurecompiler.cmake
+++ b/configurecompiler.cmake
@@ -9,7 +9,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux)
# CMAKE_HOST_SYSTEM_PROCESSOR returns the value of `uname -p` on host.
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL amd64)
if(CLR_CMAKE_TARGET_ARCH STREQUAL "arm")
- set(CLR_CMAKE_PLATFORM_UNIX_X86 1)
+ if($ENV{CROSSCOMPILE} STREQUAL "1")
+ set(CLR_CMAKE_PLATFORM_UNIX_X86 1)
+ else()
+ set(CLR_CMAKE_PLATFORM_UNIX_AMD64 1)
+ endif()
else()
set(CLR_CMAKE_PLATFORM_UNIX_AMD64 1)
endif()