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:
Diffstat (limited to 'src/Native/CMakeLists.txt')
-rw-r--r--src/Native/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt
index 120dce68f..2d7a9243d 100644
--- a/src/Native/CMakeLists.txt
+++ b/src/Native/CMakeLists.txt
@@ -27,6 +27,11 @@ elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL armv7l)
add_compile_options(-target armv7-linux-gnueabihf)
add_compile_options(-mthumb)
add_compile_options(-mfpu=vfpv3)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64)
+ set(IS_64BIT_BUILD 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
+ add_compile_options(-target aarch64-linux-gnu)
endif ()
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
@@ -134,6 +139,7 @@ elseif(CLR_CMAKE_PLATFORM_ARCH_ARM)
add_definitions(-D_ARM_)
elseif(CLR_CMAKE_PLATFORM_ARCH_ARM64)
add_definitions(-D_TARGET_ARM64_=1)
+ add_definitions(-D_ARM64_)
else()
clr_unknown_arch()
endif()