summaryrefslogtreecommitdiff
path: root/configurecompiler.cmake
diff options
context:
space:
mode:
authorEgor Chesakov <Egor.Chesakov@microsoft.com>2018-10-03 17:21:23 (GMT)
committerGitHub <noreply@github.com>2018-10-03 17:21:23 (GMT)
commit48a8c74e355fad5c1a569b131f4038218c98dfee (patch)
tree5820c97c8730f0aecefd2a419623fe2ab1b539e2 /configurecompiler.cmake
parent302630ed5a3730470e9ffeeebcd38c737c03963d (diff)
downloadcoreclr-48a8c74e355fad5c1a569b131f4038218c98dfee.zip
coreclr-48a8c74e355fad5c1a569b131f4038218c98dfee.tar.gz
coreclr-48a8c74e355fad5c1a569b131f4038218c98dfee.tar.bz2
Support building cross-architecture components on armel (#20190)
Diffstat (limited to 'configurecompiler.cmake')
-rw-r--r--configurecompiler.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake
index 7ee19ba..6567cef 100644
--- a/configurecompiler.cmake
+++ b/configurecompiler.cmake
@@ -8,7 +8,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux)
if(CLR_CROSS_COMPONENTS_BUILD)
# 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")
+ if(CLR_CMAKE_TARGET_ARCH STREQUAL "arm" OR CLR_CMAKE_TARGET_ARCH STREQUAL "armel")
if($ENV{CROSSCOMPILE} STREQUAL "1")
set(CLR_CMAKE_PLATFORM_UNIX_X86 1)
else()
@@ -156,6 +156,9 @@ if (CLR_CMAKE_TARGET_ARCH STREQUAL x64)
set(CLR_CMAKE_TARGET_ARCH_ARM64 1)
elseif(CLR_CMAKE_TARGET_ARCH STREQUAL arm)
set(CLR_CMAKE_TARGET_ARCH_ARM 1)
+ elseif(CLR_CMAKE_TARGET_ARCH STREQUAL armel)
+ set(CLR_CMAKE_TARGET_ARCH_ARM 1)
+ set(ARM_SOFTFP 1)
else()
clr_unknown_arch()
endif()