|
49 | 49 | <RuntimeFlavor Condition="'$(RuntimeFlavor)' == ''">$(PrimaryRuntimeFlavor)</RuntimeFlavor> |
50 | 50 | </PropertyGroup> |
51 | 51 |
|
52 | | - <!-- CLR NativeAot only builds in a subset of the matrix --> |
53 | 52 | <PropertyGroup> |
54 | | - <NativeAotSupported Condition="('$(TargetOS)' == 'windows' or '$(TargetOS)' == 'linux' or '$(TargetOS)' == 'OSX') and ('$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'arm64') and ('$(TargetOS)' != 'OSX' or '$(TargetArchitecture)' != 'arm64') and ('$(__DistroRid)' != 'linux-musl-arm64')">true</NativeAotSupported> |
| 53 | + <!-- CLR NativeAot only builds in a subset of the matrix --> |
| 54 | + <NativeAotSupported Condition="('$(TargetOS)' == 'windows' or '$(TargetOS)' == 'linux' or '$(TargetOS)' == 'OSX') and ('$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'arm64') and ('$(TargetOS)' != 'OSX' or '$(TargetArchitecture)' != 'arm64')">true</NativeAotSupported> |
| 55 | + |
| 56 | + <!-- If we're building clr.nativeaotlibs and not building the CLR runtime, compile libraries against NativeAOT CoreLib --> |
| 57 | + <UseNativeAotCoreLib Condition="$(_subset.Contains('+clr.nativeaotlibs+')) and !$(_subset.Contains('+clr+')) and !$(_subset.Contains('+clr.runtime+'))">true</UseNativeAotCoreLib> |
55 | 58 | </PropertyGroup> |
56 | 59 |
|
57 | 60 | <PropertyGroup> |
|
104 | 107 | <SubsetName Include="Clr.Runtime" Description="The CoreCLR .NET runtime." /> |
105 | 108 | <SubsetName Include="Clr.Native" Description="All CoreCLR native non-test components, including the runtime, jits, and other native tools." /> |
106 | 109 | <SubsetName Include="Clr.NativeAotLibs" Description="The CoreCLR native AOT CoreLib, runtime, and other low level class libraries." /> |
107 | | - <SubsetName Include="Clr.ObjWriter" Description="Object writer for the CoreCLR Native AOT compiler." /> |
108 | 110 | <SubsetName Include="Clr.PalTests" OnDemand="true" Description="The CoreCLR PAL tests." /> |
109 | 111 | <SubsetName Include="Clr.PalTestList" OnDemand="true" Description="Generate the list of the CoreCLR PAL tests. When using the command line, use Clr.PalTests instead." /> |
110 | 112 | <SubsetName Include="Clr.Hosts" Description="The CoreCLR corerun test host." /> |
|
242 | 244 |
|
243 | 245 | <ProjectToBuild Condition="'$(TargetArchitecture)' != 'x64' and '$(BuildArchitecture)' == 'x64'" Include="$(CoreClrProjectRoot)tools\aot\crossgen2\crossgen2_crossarch.csproj" Category="clr" /> |
244 | 246 | <ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\ILCompiler.TypeSystem.ReadyToRun.Tests\ILCompiler.TypeSystem.ReadyToRun.Tests.csproj" |
245 | | - Test="true" Category="clr" Condition="'$(__DistroRid)' != 'linux-musl-x64' and '$(DotNetBuildFromSource)' != 'true'"/> |
| 247 | + Test="true" Category="clr" Condition="'$(DotNetBuildFromSource)' != 'true'"/> |
| 248 | + <ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\ILCompiler.Compiler.Tests\ILCompiler.Compiler.Tests.csproj" |
| 249 | + Test="true" Category="clr" Condition="'$(DotNetBuildFromSource)' != 'true' and '$(NativeAotSupported)' == 'true'"/> |
246 | 250 | </ItemGroup> |
247 | 251 |
|
248 | 252 | <ItemGroup Condition="$(_subset.Contains('+clr.nativecorelib+'))"> |
|
261 | 265 | <ProjectToBuild Include="$(CoreClrProjectRoot)nativeaot\**\src\*.csproj" Category="clr" /> |
262 | 266 | </ItemGroup> |
263 | 267 |
|
264 | | - <ItemGroup Condition="$(_subset.Contains('+clr.objwriter+'))"> |
265 | | - <ProjectToBuild Include="$(CoreClrProjectRoot)tools\aot\ObjWriter\objwriter.proj" Category="clr" /> |
266 | | - </ItemGroup> |
267 | | - |
268 | 268 | <!-- Mono sets --> |
269 | 269 | <ItemGroup Condition="$(_subset.Contains('+mono.llvm+')) or $(_subset.Contains('+mono.aotcross+')) or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'iOSSimulator' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'tvOSSimulator' or '$(TargetOS)' == 'MacCatalyst' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'Browser'"> |
270 | 270 | <ProjectToBuild Include="$(MonoProjectRoot)llvm\llvm-init.proj" Category="mono" /> |
|
0 commit comments