Build CoreCLR tests as platform independent (AnyCPU) (#32916)
authorGleb Balykov <g.balykov@samsung.com>
Tue, 3 Mar 2020 19:38:48 +0000 (22:38 +0300)
committerGitHub <noreply@github.com>
Tue, 3 Mar 2020 19:38:48 +0000 (11:38 -0800)
* Build platform independent tests dlls

* Fix tests exclusion conditions

* Fix windows specific dirs

30 files changed:
src/coreclr/tests/dir.common.props
src/coreclr/tests/dir.sdkbuild.props
src/coreclr/tests/src/Directory.Build.props
src/coreclr/tests/src/GC/API/GC/GetAllocatedBytesForCurrentThread.csproj
src/coreclr/tests/src/GC/API/GC/GetTotalAllocatedBytes.csproj
src/coreclr/tests/src/GC/Regressions/v2.0-rtm/494226/494226.csproj
src/coreclr/tests/src/GC/Scenarios/ServerModel/servermodel.csproj
src/coreclr/tests/src/Interop/IJW/CopyConstructorMarshaler/CopyConstructorMarshaler.csproj
src/coreclr/tests/src/Interop/IJW/FixupCallsHostWhenLoaded/FixupCallsHostWhenLoaded.csproj
src/coreclr/tests/src/Interop/IJW/LoadIjwFromModuleHandle/LoadIjwFromModuleHandle.csproj
src/coreclr/tests/src/Interop/IJW/ManagedCallingNative/ManagedCallingNative.csproj
src/coreclr/tests/src/Interop/IJW/NativeCallingManaged/NativeCallingManaged.csproj
src/coreclr/tests/src/Interop/IJW/NativeVarargs/NativeVarargsTest.csproj
src/coreclr/tests/src/Interop/Interop.settings.targets
src/coreclr/tests/src/Interop/WinRT/NETClients/Bindings/NETClientBindings.csproj
src/coreclr/tests/src/JIT/Directed/VectorABI/VectorMgdMgd_ro.csproj
src/coreclr/tests/src/JIT/IL_Conformance/Old/Conformance_Base/conv_ovf_i8_i.ilproj
src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_d.csproj
src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_r.csproj
src/coreclr/tests/src/JIT/Methodical/tailcall_v4/hijacking.ilproj
src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_278523/DevDiv_278523.ilproj
src/coreclr/tests/src/JIT/Regression/VS-ia64-JIT/V2.0-Beta2/b311420/b311420.csproj
src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_d.csproj
src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_r.csproj
src/coreclr/tests/src/JIT/jit64/opt/cse/hugeexpr1.csproj
src/coreclr/tests/src/JIT/superpmi/superpmicollect.csproj
src/coreclr/tests/src/readytorun/coreroot_determinism/coreroot_determinism.csproj
src/coreclr/tests/src/readytorun/crossgen2/crossgen2smoke.csproj
src/coreclr/tests/src/readytorun/determinism/crossgen2determinism.csproj
src/coreclr/tests/src/readytorun/r2rdump/R2RDumpTest.csproj

index 4382aa1..41c42a2 100644 (file)
@@ -10,7 +10,7 @@
        tests/dir.props directly - these should eventually go away. -->
 
   <PropertyGroup>
-    <OSPlatformConfig>$(BuildOS).$(Platform).$(Configuration)</OSPlatformConfig>
+    <OSPlatformConfig>$(BuildOS).$(BuildArch).$(Configuration)</OSPlatformConfig>
 
     <TestSrcDir>$(MSBuildThisFileDirectory)src</TestSrcDir>
     <BuildProjectRelativeDir>$([MSBuild]::MakeRelative($(TestSrcDir), $(MSBuildProjectDirectory)))\$(MSBuildProjectName)\</BuildProjectRelativeDir>
index 5a6d532..7e0c081 100644 (file)
@@ -9,7 +9,7 @@
     <TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <EnableDefaultItems>false</EnableDefaultItems>
-    <Platform>$(BuildArch)</Platform>
+    <Platform>AnyCPU</Platform>
 
     <!-- [ARCADE REMOVE] This line should be removed we use the Arcade Sdk. -->
     <DeterministicSourcePaths>false</DeterministicSourcePaths>
index 4d63321..00d5ce2 100644 (file)
@@ -30,7 +30,7 @@
     <BinDir>$(BaseOutputPathWithConfig)</BinDir>
     <BaseIntermediateOutputPath>$(RootRepoDir)\artifacts\tests\coreclr\obj\$(OSPlatformConfig)\Managed\</BaseIntermediateOutputPath>
     <BaseIntermediateOutputPath Condition="'$(__ManagedTestIntermediatesDir)' != ''">$(__ManagedTestIntermediatesDir)\</BaseIntermediateOutputPath>
-    <__NativeTestIntermediatesDir Condition="'$(__NativeTestIntermediatesDir)' == ''">$([System.IO.Path]::GetFullPath($(BaseOutputPathWithConfig)..\..\coreclr\obj\$(BuildOS).$(Platform).$(Configuration)\Native\))</__NativeTestIntermediatesDir>
+    <__NativeTestIntermediatesDir Condition="'$(__NativeTestIntermediatesDir)' == ''">$([System.IO.Path]::GetFullPath($(BaseOutputPathWithConfig)..\..\coreclr\obj\$(BuildOS).$(BuildArch).$(Configuration)\Native\))</__NativeTestIntermediatesDir>
     <BuildProjectRelativeDir>$(MSBuildProjectName)\</BuildProjectRelativeDir>
     <BuildProjectRelativeDir Condition="'$(MSBuildProjectDirectory.Contains($(TestSourceDir)))'">$([System.String]::Copy('$(MSBuildProjectDirectory)').Replace($(TestSourceDir),''))\$(MSBuildProjectName)</BuildProjectRelativeDir>
     <IntermediateOutputPath>$(BaseIntermediateOutputPath)$(BuildProjectRelativeDir)\</IntermediateOutputPath>
index 7464113..e29d631 100644 (file)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <HeapVerifyIncompatible Condition="'$(Platform)' == 'arm'">true</HeapVerifyIncompatible>
+    <HeapVerifyIncompatible Condition="'$(BuildArch)' == 'arm'">true</HeapVerifyIncompatible>
   </PropertyGroup>
   <PropertyGroup>
     <!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
index 57df5c4..b56eadc 100644 (file)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <HeapVerifyIncompatible Condition="'$(Platform)' == 'arm'">true</HeapVerifyIncompatible>
+    <HeapVerifyIncompatible Condition="'$(BuildArch)' == 'arm'">true</HeapVerifyIncompatible>
   </PropertyGroup>
   <PropertyGroup>
     <!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
index e8f3e88..9230aa5 100644 (file)
@@ -2,7 +2,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <GCStressIncompatible>true</GCStressIncompatible>
-    <HeapVerifyIncompatible Condition="'$(Platform)' == 'x86' or '$(Platform)' == 'arm' or '$(Platform)' == 'arm64'">true</HeapVerifyIncompatible>
+    <HeapVerifyIncompatible Condition="'$(BuildArch)' == 'x86' or '$(BuildArch)' == 'arm' or '$(BuildArch)' == 'arm64'">true</HeapVerifyIncompatible>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
   </PropertyGroup>
   <ItemGroup>
index e1bec38..418639a 100644 (file)
@@ -3,7 +3,7 @@
     <OutputType>Exe</OutputType>
     <CLRTestExecutionArguments>/numrequests:100</CLRTestExecutionArguments>
     <GCStressIncompatible>true</GCStressIncompatible>
-    <HeapVerifyIncompatible Condition="'$(Platform)' == 'x86' or '$(Platform)' == 'arm' or '$(Platform)' == 'arm64'">true</HeapVerifyIncompatible>
+    <HeapVerifyIncompatible Condition="'$(BuildArch)' == 'x86' or '$(BuildArch)' == 'arm' or '$(BuildArch)' == 'arm64'">true</HeapVerifyIncompatible>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="cache.cs" />
index c7a0eca..5a392a9 100644 (file)
@@ -7,7 +7,7 @@
     <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
     <DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
     <!-- IJW is not supported on ARM64 -->
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm64'">true</DisableProjectBuild>
     <!-- Loading IJW assemblies into an unloadable context is not allowed -->
     <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
   </PropertyGroup>
index 3734d92..84e494d 100644 (file)
@@ -7,7 +7,7 @@
     <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
     <DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
     <!-- IJW is not supported on ARM64 -->
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm64'">true</DisableProjectBuild>
     <!-- Loading IJW assemblies into an unloadable context is not allowed -->
     <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
   </PropertyGroup>
index 071b9ff..c57c638 100644 (file)
@@ -9,7 +9,7 @@
     <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
     <DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
     <!-- IJW is not supported on ARM64 -->
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm64'">true</DisableProjectBuild>
     <!-- Loading IJW assemblies into an unloadable context is not allowed -->
     <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
   </PropertyGroup>
index a0b5921..033a266 100644 (file)
@@ -7,7 +7,7 @@
     <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
     <DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
     <!-- IJW is not supported on ARM64 -->
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm64'">true</DisableProjectBuild>
     <!-- Loading IJW assemblies into an unloadable context is not allowed -->
     <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
   </PropertyGroup>
index fb0e9d8..eb21075 100644 (file)
@@ -7,7 +7,7 @@
     <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
     <DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
     <!-- IJW is not supported on ARM64 -->
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm64'">true</DisableProjectBuild>
     <!-- Loading IJW assemblies into an unloadable context is not allowed -->
     <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
   </PropertyGroup>
index 231e66e..1c0cd49 100644 (file)
@@ -7,9 +7,9 @@
     <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
     <DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
     <!-- IJW is not supported on ARM64 -->
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm64'">true</DisableProjectBuild>
     <!-- Native varargs not supported on ARM -->
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm'">true</DisableProjectBuild>
     <!-- Loading IJW assemblies into an unloadable context is not allowed -->
     <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
   </PropertyGroup>
index c26170b..a9d550e 100644 (file)
@@ -22,8 +22,8 @@
   <ItemGroup
     Condition="'$(TargetsWindows)' == 'true' And ('$(Configuration)' == 'Debug' Or '$(Configuration)' == 'Checked') And '$(CopyDebugCRTDllsToOutputDirectory)' == 'true'" >
 
-    <None Include="$(VCToolsRedistDir)onecore/debug_nonredist/$(Platform)/Microsoft.VC*.DebugCRT/vcruntime*d.dll" Link="%(Filename)%(Extension)" CopyToOutputDirectory="Always" />
-    <None Include="$(VCToolsRedistDir)onecore/debug_nonredist/$(Platform)/Microsoft.VC*.DebugCRT/msvcp*d.dll" Link="%(Filename)%(Extension)" CopyToOutputDirectory="Always" />
-    <None Include="$(ExtensionSdkDir)/Microsoft.UniversalCRT.Debug/$(UCRTVersion)/Redist/Debug/$(Platform)/ucrtbased.dll" CopyToOutputDirectory="Always" />
+    <None Include="$(VCToolsRedistDir)onecore/debug_nonredist/$(BuildArch)/Microsoft.VC*.DebugCRT/vcruntime*d.dll" Link="%(Filename)%(Extension)" CopyToOutputDirectory="Always" />
+    <None Include="$(VCToolsRedistDir)onecore/debug_nonredist/$(BuildArch)/Microsoft.VC*.DebugCRT/msvcp*d.dll" Link="%(Filename)%(Extension)" CopyToOutputDirectory="Always" />
+    <None Include="$(ExtensionSdkDir)/Microsoft.UniversalCRT.Debug/$(UCRTVersion)/Redist/Debug/$(BuildArch)/ucrtbased.dll" CopyToOutputDirectory="Always" />
   </ItemGroup>
 </Project>
index d94f3ce..5f17399 100644 (file)
@@ -4,7 +4,7 @@
     <!-- Test unsupported outside of windows -->
     <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
     <DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm' or '$(Platform)' == 'arm64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm' or '$(BuildArch)' == 'arm64'">true</DisableProjectBuild>
     <!-- WinRT interop is not compatible with unloadability -->
     <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
   </PropertyGroup>
index 2f5a590..4ac8db8 100644 (file)
@@ -6,7 +6,7 @@
     <DebugType />
     <Optimize>True</Optimize>
     <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
-    <JitOptimizationSensitive Condition="'$(Platform)' == 'arm64'">true</JitOptimizationSensitive>
+    <JitOptimizationSensitive Condition="'$(BuildArch)' == 'arm64'">true</JitOptimizationSensitive>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="VectorMgdMgd.cs" />
index ab3b417..1f52caf 100644 (file)
@@ -1,8 +1,8 @@
 <Project Sdk="Microsoft.NET.Sdk.IL">
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <DisableProjectBuild Condition="'$(Platform)' == 'x64'">true</DisableProjectBuild>
-    <DisableProjectBuild Condition="'$(Platform)' == 'arm64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'x64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' == 'arm64'">true</DisableProjectBuild>
   </PropertyGroup>
   <PropertyGroup>
     <DebugType>PdbOnly</DebugType>
index 5f87f87..758a3e4 100644 (file)
@@ -2,7 +2,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <!-- NOTE: this test simply takes too long to complete under GC stress/heap verify; it is not fundamentally incompatible -->
-    <GCStressIncompatible Condition="'$(Platform)' == 'x86'">true</GCStressIncompatible>
+    <GCStressIncompatible Condition="'$(BuildArch)' == 'x86'">true</GCStressIncompatible>
     <HeapVerifyIncompatible>true</HeapVerifyIncompatible>
   </PropertyGroup>
   <PropertyGroup>
index 4d335ba..becd835 100644 (file)
@@ -2,7 +2,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <!-- NOTE: this test simply takes too long to complete under GC stress/heap verify; it is not fundamentally incompatible -->
-    <GCStressIncompatible Condition="'$(Platform)' == 'x86'">true</GCStressIncompatible>
+    <GCStressIncompatible Condition="'$(BuildArch)' == 'x86'">true</GCStressIncompatible>
     <HeapVerifyIncompatible>true</HeapVerifyIncompatible>
   </PropertyGroup>
   <PropertyGroup>
index 2fd748f..b214151 100644 (file)
@@ -2,8 +2,8 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <!-- NOTE: this test simply takes too long to complete under heap verify. It is not fundamentally incompatible. -->
-    <GCStressIncompatible Condition="'$(Platform)' == 'x86'">true</GCStressIncompatible>
-    <HeapVerifyIncompatible Condition="'$(Platform)' == 'x86'">true</HeapVerifyIncompatible>
+    <GCStressIncompatible Condition="'$(BuildArch)' == 'x86'">true</GCStressIncompatible>
+    <HeapVerifyIncompatible Condition="'$(BuildArch)' == 'x86'">true</HeapVerifyIncompatible>
   </PropertyGroup>
   <PropertyGroup>
     <DebugType>PdbOnly</DebugType>
index c6f2f71..d5df312 100644 (file)
@@ -8,11 +8,11 @@
     <Optimize>True</Optimize>
   </PropertyGroup>
   <PropertyGroup>
-    <PointerSize Condition="'$(Platform)'=='x64'">64</PointerSize>
-    <PointerSize Condition="'$(Platform)'=='arm64'">64</PointerSize>
-    <PointerSize Condition="'$(Platform)'=='x86'">32</PointerSize>
-    <PointerSize Condition="'$(Platform)'=='arm'">32</PointerSize>
-    <PointerSize Condition="'$(Platform)'=='armel'">32</PointerSize>
+    <PointerSize Condition="'$(BuildArch)'=='x64'">64</PointerSize>
+    <PointerSize Condition="'$(BuildArch)'=='arm64'">64</PointerSize>
+    <PointerSize Condition="'$(BuildArch)'=='x86'">32</PointerSize>
+    <PointerSize Condition="'$(BuildArch)'=='arm'">32</PointerSize>
+    <PointerSize Condition="'$(BuildArch)'=='armel'">32</PointerSize>
   </PropertyGroup>
   <ItemGroup Condition=" '$(PointerSize)' == '64' ">
     <Compile Include="DevDiv_278523_64.il" />
index c1a989f..3716edd 100644 (file)
@@ -2,7 +2,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <!-- NOTE: this test simply takes too long to complete under GC stress; it is not fundamentally incompatible -->
-    <GCStressIncompatible Condition="'$(Platform)' == 'x86'">true</GCStressIncompatible>
+    <GCStressIncompatible Condition="'$(BuildArch)' == 'x86'">true</GCStressIncompatible>
     <CLRTestPriority>1</CLRTestPriority>
   </PropertyGroup>
   <PropertyGroup>
index 7c2ebaf..49c7772 100644 (file)
@@ -2,8 +2,8 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <!-- NOTE: this test simply takes too long to complete under heap verify. It is not fundamentally incompatible. -->
-    <GCStressIncompatible Condition="'$(Platform)' == 'x86'">true</GCStressIncompatible>
-    <HeapVerifyIncompatible Condition="'$(Platform)' == 'x86'">true</HeapVerifyIncompatible>
+    <GCStressIncompatible Condition="'$(BuildArch)' == 'x86'">true</GCStressIncompatible>
+    <HeapVerifyIncompatible Condition="'$(BuildArch)' == 'x86'">true</HeapVerifyIncompatible>
   </PropertyGroup>
   <PropertyGroup>
     <DebugType>Full</DebugType>
index 3ee4e79..2714565 100644 (file)
@@ -2,8 +2,8 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <!-- NOTE: this test simply takes too long to complete under heap verify. It is not fundamentally incompatible. -->
-    <GCStressIncompatible Condition="'$(Platform)' == 'x86'">true</GCStressIncompatible>
-    <HeapVerifyIncompatible Condition="'$(Platform)' == 'x86'">true</HeapVerifyIncompatible>
+    <GCStressIncompatible Condition="'$(BuildArch)' == 'x86'">true</GCStressIncompatible>
+    <HeapVerifyIncompatible Condition="'$(BuildArch)' == 'x86'">true</HeapVerifyIncompatible>
   </PropertyGroup>
   <PropertyGroup>
     <DebugType>None</DebugType>
index 542bac8..5fa5854 100644 (file)
@@ -9,7 +9,7 @@
     <Optimize>True</Optimize>
     <!-- This test is very resource heavy and doesn't play well with some JitStress modes, especially when memory is limited  (x86),
          on arm the test fails to crossgen with stress mode because of an relocation offset size limit, see #16587 -->
-    <JitOptimizationSensitive Condition="'$(Platform)' == 'x86' Or '$(Platform)' == 'arm'">true</JitOptimizationSensitive>
+    <JitOptimizationSensitive Condition="'$(BuildArch)' == 'x86' Or '$(BuildArch)' == 'arm'">true</JitOptimizationSensitive>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="hugeexpr1.cs" />
index 4839b99..89af0a2 100644 (file)
@@ -5,7 +5,7 @@
     <!-- This test takes a long time to complete -->
     <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
     <!-- https://github.com/dotnet/coreclr/issues/24633 -->
-    <JitOptimizationSensitive Condition="'$(Platform)' == 'arm'">true</JitOptimizationSensitive>
+    <JitOptimizationSensitive Condition="'$(BuildArch)' == 'arm'">true</JitOptimizationSensitive>
   </PropertyGroup>
   <PropertyGroup>
     <DebugType>Full</DebugType>
index 3133e13..df39adf 100644 (file)
@@ -4,7 +4,7 @@
     <CLRTestKind>BuildAndRun</CLRTestKind>
     <CLRTestPriority>0</CLRTestPriority>
     <!-- Crossgen2 currently targets only x64 -->
-    <DisableProjectBuild Condition="'$(Platform)' != 'x64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' != 'x64'">true</DisableProjectBuild>
     <!-- Known not to work with GCStress for now: https://github.com/dotnet/coreclr/issues/26633 -->
     <GCStressIncompatible>true</GCStressIncompatible>
     <!-- This is an explicit crossgen test -->
index 962adf7..0116d11 100644 (file)
@@ -6,7 +6,7 @@
     <CLRTestPriority>0</CLRTestPriority>
 
     <!-- Crossgen2 currently targets only x64 -->
-    <DisableProjectBuild Condition="'$(Platform)' != 'x64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' != 'x64'">true</DisableProjectBuild>
 
     <!-- Generate ILDLL so that the DLL can be the crossgenned assembly -->
     <TargetExt>.ildll</TargetExt>
index 5786047..c5c2f35 100644 (file)
@@ -4,7 +4,7 @@
     <CLRTestKind>BuildAndRun</CLRTestKind>
     <CLRTestPriority>0</CLRTestPriority>
     <!-- Crossgen2 currently targets only x64 -->
-    <DisableProjectBuild Condition="'$(Platform)' != 'x64'">true</DisableProjectBuild>
+    <DisableProjectBuild Condition="'$(BuildArch)' != 'x64'">true</DisableProjectBuild>
     <!-- Known not to work with GCStress for now: https://github.com/dotnet/coreclr/issues/26633 -->
     <GCStressIncompatible>true</GCStressIncompatible>
     <!-- This is an explicit crossgen test -->
index 97007a0..ca9f7b2 100644 (file)
@@ -12,7 +12,7 @@
     <!-- Test unsupported outside of windows -->
     <!-- Test unsupported on arm targets -->
     <TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
-    <DisableProjectBuild Condition=" '$(Platform)' == 'arm64' or '$(Platform)' == 'arm' or '$(TargetsUnix)' == 'true' ">true</DisableProjectBuild>
+    <DisableProjectBuild Condition=" '$(BuildArch)' == 'arm64' or '$(BuildArch)' == 'arm' or '$(TargetsUnix)' == 'true' ">true</DisableProjectBuild>
   </PropertyGroup>
   <PropertyGroup>
     <!-- Fails with JIT stress modes, issue #19415 -->