From b91509e985dbbf1e1f5a24bf06751d7b686bce8e Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Fri, 2 Sep 2022 06:24:53 +0900 Subject: [PATCH] [Tizen] Enable aggresive optimization for aarch64 In case of aarch64, DISABLE_AGGRESSIVE_OPT option makes start-time slow and use a lot of memory. So, enable aggressive optimization for aarch64. --- packaging/coreclr.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec index b78822c..241d759 100755 --- a/packaging/coreclr.spec +++ b/packaging/coreclr.spec @@ -317,8 +317,13 @@ export CXXFLAGS+="-fstack-protector-strong" %endif %endif +%ifarch aarch64 +%define _native_opts "" +%define _managed_opts "" +%else %define _native_opts --cmakeargs -DDISABLE_AGGRESSIVE_OPT=true %define _managed_opts /p:DisableAggressiveOpt=true +%endif %define _source_version_flags /p:EnableSourceLink=false /p:DisableSourceLink=true /p:EnableSourceControlManagerQueries=false /p:EmbedUntrackedSources=false %define _build_args --keepnativesymbols true --arch %{_barch} --runtimeConfiguration %{dotnet_buildtype_clr} --librariesConfiguration %{dotnet_buildtype_fx} %{_source_version_flags} %{_native_opts} %{_managed_opts} %define _build_args_release --keepnativesymbols true --arch %{_barch} --runtimeConfiguration Release --librariesConfiguration Release %{_source_version_flags} %{_native_opts} %{_managed_opts} -- 2.7.4