Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Ignatov <sergign60@mail.ru>2017-02-01 19:56:19 +0300
committerSergey Ignatov <sergign60@mail.ru>2017-02-06 15:29:42 +0300
commitf0dcb80f7b60f1f14d1efe3780c36d09e9b0b29f (patch)
tree84c10bcf59a1558572bbda21ea79004a13c8adfa /src/Native/CMakeLists.txt
parente6ff5433da6027767eb87d7e0891bacddd87645a (diff)
Added armel building
Diffstat (limited to 'src/Native/CMakeLists.txt')
-rw-r--r--src/Native/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt
index 0ed106efb..81ab1c1a1 100644
--- a/src/Native/CMakeLists.txt
+++ b/src/Native/CMakeLists.txt
@@ -22,7 +22,7 @@ function(clr_unknown_arch)
if (WIN32)
message(FATAL_ERROR "Only AMD64 and I386 are supported")
else()
- message(FATAL_ERROR "Only AMD64, ARM64 and ARM are supported")
+ message(FATAL_ERROR "Only AMD64, ARM64 ARM and ARMEL are supported")
endif()
endfunction()
@@ -32,7 +32,12 @@ elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL armv7l)
add_definitions(-DBIT32=1)
# Because we don't use CMAKE_C_COMPILER/CMAKE_CXX_COMPILER to use clang
# we have to set the triple by adding a compiler argument
+ if(TOOLCHAIN STREQUAL arm-linux-gnueabi)
+ add_compile_options(-target armv7-linux-gnueabi)
+ add_compile_options(-mfloat-abi=softfp)
+ else ()
add_compile_options(-target armv7-linux-gnueabihf)
+ endif ()
add_compile_options(-mthumb)
add_compile_options(-mfpu=vfpv3)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64)