|
7 | 7 | <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
8 | 8 |
|
9 | 9 | <PropertyGroup>
|
10 |
| - <NativeAotSupported Condition="$(OutputRID.StartsWith('tizen')) == 'true'">false</NativeAotSupported> |
11 |
| - <NativeAotSupported Condition="$(OutputRID.EndsWith('-arm')) == 'true'">false</NativeAotSupported> |
12 |
| - <NativeAotSupported Condition="$(OutputRID.EndsWith('-x86')) == 'true'">false</NativeAotSupported> |
13 |
| - <!-- Publish crossgen2 as a single-file app on native-OS builds. Cross-OS NativeAOT compilation is not supported yet --> |
14 |
| - <NativeAotSupported Condition="'$(CrossBuild)' == 'true' and '$(TargetOS)' != '$(HostOS)'">false</NativeAotSupported> |
15 | 10 | <PublishTrimmed>true</PublishTrimmed>
|
16 | 11 | <RuntimeIdentifier>$(PackageRID)</RuntimeIdentifier>
|
17 | 12 | <SelfContained>true</SelfContained>
|
|
21 | 16 |
|
22 | 17 | <Import Project="crossgen2.props" />
|
23 | 18 |
|
24 |
| - <PropertyGroup Condition="'$(NativeAotSupported)' != 'true'"> |
| 19 | + <PropertyGroup Condition="'$(UseNativeAotForComponents)' != 'true'"> |
25 | 20 | <PublishSingleFile>true</PublishSingleFile>
|
26 | 21 | <PublishReadyToRun>true</PublishReadyToRun>
|
27 | 22 | <!-- Disable crossgen on NetBSD, illumos, Solaris, and Haiku for now. This can be revisited when we have full support. -->
|
|
41 | 36 | <Import Project="$(RepositoryEngineeringDir)targetingpacks.targets" />
|
42 | 37 | <Import Project="$(RepositoryEngineeringDir)codeOptimization.targets" />
|
43 | 38 |
|
44 |
| - <PropertyGroup Condition="'$(NativeAotSupported)' == 'true'"> |
| 39 | + <PropertyGroup Condition="'$(UseNativeAotForComponents)' == 'true'"> |
45 | 40 | <IlcToolsPath>$(CoreCLRILCompilerDir)</IlcToolsPath>
|
46 | 41 | <IlcToolsPath Condition="'$(CrossBuild)' == 'true' or '$(BuildArchitecture)' != '$(TargetArchitecture)' or '$(EnableNativeSanitizers)' != ''">$(CoreCLRCrossILCompilerDir)</IlcToolsPath>
|
47 | 42 | <SysRoot Condition="('$(CrossBuild)' == 'true' or '$(BuildArchitecture)' != '$(TargetArchitecture)') and '$(HostOS)' != 'windows'">$(ROOTFS_DIR)</SysRoot>
|
|
55 | 50 | <DsymUtilOptions Condition="'$(_IsApplePlatform)' == 'true'">--flat</DsymUtilOptions>
|
56 | 51 | </PropertyGroup>
|
57 | 52 |
|
58 |
| - <ItemGroup Condition="'$(NativeAotSupported)' == 'true'"> |
| 53 | + <ItemGroup Condition="'$(UseNativeAotForComponents)' == 'true'"> |
59 | 54 | <CustomLinkerArg Condition="'$(CrossBuild)' == 'true' and '$(_hostArchitecture)' == '$(_targetArchitecture)' and '$(_IsApplePlatform)' != 'true' and '$(_hostOS)' != 'windows'" Include="--gcc-toolchain=$(ROOTFS_DIR)/usr" />
|
60 | 55 | </ItemGroup>
|
61 | 56 |
|
62 | 57 | <Import Project="$(CoreCLRBuildIntegrationDir)Microsoft.DotNet.ILCompiler.SingleEntry.targets"
|
63 |
| - Condition="'$(NativeAotSupported)' == 'true'" /> |
| 58 | + Condition="'$(UseNativeAotForComponents)' == 'true'" /> |
64 | 59 | <Import Project="$(RepositoryEngineeringDir)nativeSanitizers.targets" />
|
65 | 60 |
|
66 | 61 | <!-- Needed for the amd64 -> amd64 musl cross-build to pass the target flag. -->
|
|
88 | 83 | </Target>
|
89 | 84 |
|
90 | 85 | <Target Name="LocateNativeCompiler"
|
91 |
| - Condition="'$(NativeAotSupported)' == 'true' and '$(HostOS)' != 'windows'" |
| 86 | + Condition="'$(UseNativeAotForComponents)' == 'true' and '$(HostOS)' != 'windows'" |
92 | 87 | BeforeTargets="SetupOSSpecificProps">
|
93 | 88 | <PropertyGroup>
|
94 | 89 | <CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == ''">clang</CppCompilerAndLinker>
|
|
0 commit comments