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:
authorManu <manu-silicon@users.noreply.github.com>2015-12-01 08:29:42 +0300
committerManu <manu-silicon@users.noreply.github.com>2015-12-04 05:53:48 +0300
commit7721f2896d21166e85df3b05251b094e324e5ef7 (patch)
tree18798efbc23bbe25b593f3c7b2e63a81956846c7 /src/Native/CMakeLists.txt
parentc65337792bfc575bbfc2c9a853faa71cf97dbfe3 (diff)
Added build support for ARM64
Update cmake configuration files to support ARM64. Added skeleton of AsmMacros.h and WriteBarriers.S for ARM64.
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()