|
10 | 10 | <!-- BEGIN: Workaround for https://github.com/dotnet/runtime/issues/67742 -->
|
11 | 11 | <PropertyGroup Condition="'$(BuildingInsideVisualStudio)' != 'true'">
|
12 | 12 | <PublishDir>$(RuntimeBinDir)ilc-published/</PublishDir>
|
13 |
| - <NativeAotSupported Condition="$(OutputRID.StartsWith('tizen')) == 'true'">false</NativeAotSupported> |
14 |
| - <NativeAotSupported Condition="$(OutputRID.EndsWith('-arm')) == 'true'">false</NativeAotSupported> |
15 |
| - <NativeAotSupported Condition="$(OutputRID.EndsWith('-x86')) == 'true'">false</NativeAotSupported> |
16 |
| - <!-- Disable native AOT on FreeBSD when cross building from Linux. --> |
17 |
| - <NativeAotSupported Condition="'$(TargetOS)' == 'freebsd' and '$(CrossBuild)' == 'true'">false</NativeAotSupported> |
18 |
| - <PublishAot Condition="'$(NativeAotSupported)' == 'true'">true</PublishAot> |
19 |
| - <SysRoot Condition="'$(NativeAotSupported)' == 'true' and '$(CrossBuild)' == 'true' and '$(HostOS)' != 'windows'">$(ROOTFS_DIR)</SysRoot> |
20 |
| - <PublishReadyToRun Condition="'$(NativeAotSupported)' != 'true'">true</PublishReadyToRun> |
21 |
| - <PublishSingleFile Condition="'$(NativeAotSupported)' != 'true'">true</PublishSingleFile> |
22 |
| - <PublishTrimmed Condition="'$(NativeAotSupported)' != 'true'">true</PublishTrimmed> |
| 13 | + <PublishAot Condition="'$(UseNativeAotForComponents)' == 'true'">true</PublishAot> |
| 14 | + <SysRoot Condition="'$(UseNativeAotForComponents)' == 'true' and '$(CrossBuild)' == 'true' and '$(HostOS)' != 'windows'">$(ROOTFS_DIR)</SysRoot> |
| 15 | + <PublishReadyToRun Condition="'$(UseNativeAotForComponents)' != 'true'">true</PublishReadyToRun> |
| 16 | + <PublishSingleFile Condition="'$(UseNativeAotForComponents)' != 'true'">true</PublishSingleFile> |
| 17 | + <PublishTrimmed Condition="'$(UseNativeAotForComponents)' != 'true'">true</PublishTrimmed> |
23 | 18 | <SuppressGenerateILCompilerExplicitPackageReferenceWarning>true</SuppressGenerateILCompilerExplicitPackageReferenceWarning>
|
24 | 19 | </PropertyGroup>
|
25 | 20 |
|
26 |
| - <ItemGroup Condition="'$(NativeAotSupported)' == 'true'"> |
| 21 | + <ItemGroup Condition="'$(UseNativeAotForComponents)' == 'true'"> |
27 | 22 | <PackageReference Include="Microsoft.DotNet.ILCompiler" Version="$(MicrosoftDotNetILCompilerVersion)" />
|
28 | 23 | <PackageReference Include="runtime.$(ToolsRID).Microsoft.DotNet.ILCompiler" Version="$(MicrosoftDotNetILCompilerVersion)" />
|
29 | 24 | </ItemGroup>
|
|
53 | 48 | </Target>
|
54 | 49 |
|
55 | 50 | <Target Name="LocateNativeCompiler"
|
56 |
| - Condition="'$(NativeAotSupported)' == 'true' and '$(HostOS)' != 'windows'" |
| 51 | + Condition="'$(UseNativeAotForComponents)' == 'true' and '$(HostOS)' != 'windows'" |
57 | 52 | BeforeTargets="SetupOSSpecificProps">
|
58 | 53 | <PropertyGroup>
|
59 | 54 | <CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == ''">clang</CppCompilerAndLinker>
|
|
75 | 70 | <_XcodeVersion>$([System.Text.RegularExpressions.Regex]::Match($(_XcodeVersionString), '[1-9]\d*'))</_XcodeVersion>
|
76 | 71 | </PropertyGroup>
|
77 | 72 |
|
78 |
| - <ItemGroup Condition="'$(NativeAotSupported)' == 'true' and '$(_IsApplePlatform)' == 'true'"> |
| 73 | + <ItemGroup Condition="'$(UseNativeAotForComponents)' == 'true' and '$(_IsApplePlatform)' == 'true'"> |
79 | 74 | <CustomLinkerArg Condition="'$(_XcodeVersion)' >= '15'" Include="-ld_classic" />
|
80 | 75 | </ItemGroup>
|
81 | 76 |
|
|
86 | 81 | </PropertyGroup>
|
87 | 82 | </Target>
|
88 | 83 |
|
89 |
| - <ItemGroup Condition="'$(NativeAotSupported)' == 'true'"> |
| 84 | + <ItemGroup Condition="'$(UseNativeAotForComponents)' == 'true'"> |
90 | 85 | <CustomLinkerArg Condition="'$(CrossBuild)' == 'true' and '$(BuildArchitecture)' == '$(_targetArchitecture)' and '$(HostOS)' != 'windows' and '$(_IsApplePlatform)' != 'true'" Include="--gcc-toolchain=$(ROOTFS_DIR)/usr" />
|
91 | 86 | </ItemGroup>
|
92 | 87 |
|
|
0 commit comments