summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Balykov <g.balykov@samsung.com>2020-06-17 11:21:05 +0300
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>2020-06-18 13:09:14 +0900
commit1ecf6bdb4a703126af95beb6712c001e6341d2ab (patch)
tree371fecd0e5a79025992e51845acd247f1bb952c6
parent44d822061f76e1fadd249abffe20f8090147b35c (diff)
downloadcoreclr-1ecf6bdb4a703126af95beb6712c001e6341d2ab.tar.gz
coreclr-1ecf6bdb4a703126af95beb6712c001e6341d2ab.tar.bz2
coreclr-1ecf6bdb4a703126af95beb6712c001e6341d2ab.zip
[Tizen] Enable aarch64 gbs build
-rw-r--r--configurecompiler.cmake6
-rwxr-xr-xpackaging/coreclr.spec8
2 files changed, 8 insertions, 6 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake
index 5d5925c8bf..0f4594415e 100644
--- a/configurecompiler.cmake
+++ b/configurecompiler.cmake
@@ -572,6 +572,12 @@ if(CLR_CMAKE_PLATFORM_UNIX_ARM)
endif(ARM_SOFTFP)
endif(CLR_CMAKE_PLATFORM_UNIX_ARM)
+if(CLR_CMAKE_PLATFORM_UNIX_ARM64)
+ if("$ENV{__DistroRid}" MATCHES "tizen.*")
+ add_compile_options(-target aarch64-tizen-linux-gnu)
+ endif()
+endif(CLR_CMAKE_PLATFORM_UNIX_ARM64)
+
if(CLR_CMAKE_PLATFORM_UNIX)
add_compile_options(${CLR_ADDITIONAL_COMPILER_OPTIONS})
endif(CLR_CMAKE_PLATFORM_UNIX)
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index 66bc49e350..77a5481855 100755
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -18,8 +18,6 @@ URL: http://github.com/dotnet/coreclr
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
-ExcludeArch: aarch64
-
BuildRequires: python
BuildRequires: python-xml
# libcoreclr.so
@@ -62,7 +60,7 @@ BuildRequires: pkgconfig(lttng-ust)
%if 0%{skipmscorlib}
%else
-%ifarch %{arm}
+%ifarch %{arm} aarch64
BuildRequires: patchelf
%endif
%ifarch %{ix86}
@@ -113,8 +111,7 @@ cp %{SOURCE1} .
%if 0%{skipmscorlib}
%else
-%ifarch %{arm} %{ix86}
-%ifarch %{arm}
+%ifarch %{arm} aarch64
# Detect interpreter name from cross-gcc
LD_INTERPRETER=$(patchelf --print-interpreter /emul/usr/bin/gcc)
LD_RPATH=$(patchelf --print-rpath /emul/usr/bin/gcc)
@@ -135,7 +132,6 @@ do
done
%endif
%endif
-%endif
%build
# disable asan build when global forced asan build