* Disable running CrossGen on COM tests since the CrossGen tool doesn't support app manifests on Windows.
* Update ObjectStackAllocation test to use MSBuild property to disable CrossGen support.
Commit migrated from https://github.com/dotnet/coreclr/commit/
278c3a1eb144023db4fb90ccb5c65b99c4397de0
<ItemGroup>
<CLRTestBashEnvironmentVariable Condition="'$(CrossGenTest)' == 'true'" Include = "export RunCrossGen=1"/>
<CLRTestBatchEnvironmentVariable Condition="'$(CrossGenTest)' == 'true'" Include = "set RunCrossGen=1"/>
+ <CLRTestBashEnvironmentVariable Condition="'$(CrossGenTest)' == 'false'" Include = "unset RunCrossGen"/>
+ <CLRTestBatchEnvironmentVariable Condition="'$(CrossGenTest)' == 'false'" Include = "set RunCrossGen="/>
</ItemGroup>
<!--
- Target: GetCrossgenBatctchcript
This returns the portion of the execution script that generates the required lines to crossgen the test executable.
-->
<Target Name="GetCrossgenBashScript">
<!-- Blocked on ILAsm supporting embedding resources. See https://github.com/dotnet/coreclr/issues/20819 -->
<IlrtTestKind>BuildOnly</IlrtTestKind>
+ <!-- Blocked on CrossGen.exe supporting embedding resources. See https://github.com/dotnet/coreclr/issues/21006 -->
+ <CrossGenTest>false</CrossGenTest>
+
<!-- Test unsupported outside of windows -->
<TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
<DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
<!-- Blocked on ILAsm supporting embedding resources. See https://github.com/dotnet/coreclr/issues/20819 -->
<IlrtTestKind>BuildOnly</IlrtTestKind>
+ <!-- Blocked on CrossGen.exe supporting embedding resources. See https://github.com/dotnet/coreclr/issues/21006 -->
+ <CrossGenTest>false</CrossGenTest>
+
<!-- Test unsupported outside of windows -->
<TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
<DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
<!-- Blocked on ILAsm supporting embedding resources. See https://github.com/dotnet/coreclr/issues/20819 -->
<IlrtTestKind>BuildOnly</IlrtTestKind>
+ <!-- Blocked on CrossGen.exe supporting embedding resources. See https://github.com/dotnet/coreclr/issues/21006 -->
+ <CrossGenTest>false</CrossGenTest>
+
<!-- Test unsupported outside of windows -->
<TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
<DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
<PropertyGroup>
+ <CrossGenTest>false</CrossGenTest>
<CLRTestBatchPreCommands>
<![CDATA[
$(CLRTestBatchPreCommands)
set COMPlus_JitMinOpts=0
set COMPlus_JitDebuggable=0
set COMPlus_JitStressModeNamesNot=STRESS_RANDOM_INLINE
-set RunCrossGen=
set COMPlus_JitObjectStackAllocation=1
]]>
</CLRTestBatchPreCommands>
export COMPlus_JitMinOpts=0
export COMPlus_JitDebuggable=0
export COMPlus_JitStressModeNamesNot=STRESS_RANDOM_INLINE
-unset RunCrossGen
export COMPlus_JitObjectStackAllocation=1
]]>
</BashCLRTestPreCommands>