From 3830752e01528addaabc921ee476c8444b50880c Mon Sep 17 00:00:00 2001 From: Adeel <3840695+am11@users.noreply.github.com> Date: Sat, 15 Jun 2024 11:22:38 +0300 Subject: [PATCH] Revert "Revert "Consolidate <_NativeAotSupportedOS Condition="'$(TargetOS)' == 'windows' or '$(TargetOS)' == 'linux' or '$(TargetOS)' == 'osx' or '$(TargetOS)' == 'maccatalyst' or '$(TargetOS)' == 'iossimulator' or '$(TargetOS)' == 'ios' or '$(TargetOS)' == 'tvossimulator' or '$(TargetOS)' == 'tvos' or '$(TargetOS)' == 'freebsd'">true <_NativeAotSupportedArch Condition="'$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'arm64' or '$(TargetArchitecture)' == 'arm' or ('$(TargetOS)' == 'windows' and '$(TargetArchitecture)' == 'x86')">true - true + true + true true @@ -286,7 +287,10 @@ AdditionalProperties="%(AdditionalProperties); ClrCrossComponentsSubset=true; HostArchitecture=$(BuildArchitecture); + TargetArchitecture=$(TargetArchitecture); HostCrossOS=$(HostOS); + HostOS=$(HostOS); + TargetOS=$(TargetOS); PgoInstrument=false; NoPgoOptimize=true; CrossBuild=false; diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index 823dab33c645c4..ffab9cbb1289b1 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -10,20 +10,15 @@ $(RuntimeBinDir)ilc-published/ - false - false - false - - false - true - $(ROOTFS_DIR) - true - true - true + true + $(ROOTFS_DIR) + true + true + true true - + @@ -53,7 +48,7 @@ clang @@ -75,7 +70,7 @@ <_XcodeVersion>$([System.Text.RegularExpressions.Regex]::Match($(_XcodeVersionString), '[1-9]\d*')) - + @@ -86,7 +81,7 @@ - + diff --git a/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj b/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj index 657ac23590a039..14d0fa48fa41d7 100644 --- a/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj +++ b/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj @@ -7,11 +7,6 @@ - false - false - false - - false true $(PackageRID) true @@ -21,7 +16,7 @@ - + true true @@ -41,7 +36,7 @@ - + $(CoreCLRILCompilerDir) $(CoreCLRCrossILCompilerDir) $(ROOTFS_DIR) @@ -55,12 +50,12 @@ --flat - + + Condition="'$(UseNativeAotForComponents)' == 'true'" /> @@ -88,7 +83,7 @@ clang diff --git a/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj b/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj index 8d492718edd92a..c9d40b79d38db5 100644 --- a/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj +++ b/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj @@ -15,8 +15,6 @@ true false - - false diff --git a/src/native/managed/compile-native.proj b/src/native/managed/compile-native.proj index bcda8c5d6b57b5..ef7b427944efca 100644 --- a/src/native/managed/compile-native.proj +++ b/src/native/managed/compile-native.proj @@ -13,26 +13,11 @@ - - - - false - - false - - false - - false - false - true - false - - $(ROOTFS_DIR) lld - --gcc-toolchain=$(ROOTFS_DIR)/usr + --gcc-toolchain=$(ROOTFS_DIR)/usr @@ -51,6 +36,6 @@ ReferenceOutputAssembly="false" AdditionalProperties="%(AdditionalProperties);$(SplitSubprojectProps)" Targets="LinkNative" - Condition="$(SupportsNativeAotComponents)"/> + Condition="'$(UseNativeAotForComponents)' == 'true'"/>