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