From: Woongsuk Cho Date: Thu, 1 Sep 2022 21:24:53 +0000 (+0900) Subject: [Tizen] Enable aggresive optimization for aarch64 X-Git-Tag: accepted/tizen/unified/20221103.165808~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b91509e985dbbf1e1f5a24bf06751d7b686bce8e;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [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. --- 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}