[Tizen] Enable aggresive optimization for aarch64
authorWoongsuk Cho <ws77.cho@samsung.com>
Thu, 1 Sep 2022 21:24:53 +0000 (06:24 +0900)
committerGleb Balykov <g.balykov@samsung.com>
Tue, 27 Sep 2022 12:50:22 +0000 (15:50 +0300)
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

index b78822c..241d759 100755 (executable)
@@ -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}