Skip to content

Commit 05cd31b

Browse files
authored
Enable jit optimization in crossgen testing (#114464)
See #113815 / #113849 Not enabled yet on linux.
1 parent 743d179 commit 05cd31b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/tests/Common/CLRTest.CrossGen.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ if [ ! -z ${RunCrossGen2+x} ]%3B then
110110
done
111111
112112
echo -o:"$__OutputFile" >> "$__ResponseFile"
113+
## Enable once #114504 is fixed
114+
## echo -O >> "$__ResponseFile"
113115
echo --targetarch:$(TargetArchitecture) >> "$__ResponseFile"
114116
echo --targetos:$(TargetOS) >> "$__ResponseFile"
115117
echo --verify-type-and-field-layout >> "$__ResponseFile"
@@ -276,6 +278,7 @@ if defined RunCrossGen2 (
276278
set __Command=!__Command! !ExtraCrossGen2Args!
277279
278280
echo !__InputFile!>>!__ResponseFile!
281+
echo -O>>!__ResponseFile!
279282
echo -o:!__OutputFile!>>!__ResponseFile!
280283
echo --targetarch:$(TargetArchitecture)>>!__ResponseFile!
281284
echo --targetos:$(TargetOS)>>!__ResponseFile!

src/tests/JIT/Directed/debugging/poisoning/poison.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<DebugType>PdbOnly</DebugType>
44
<Optimize>False</Optimize>
55
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
6+
<!-- Needed for CrossGenTest -->
7+
<RequiresProcessIsolation>true</RequiresProcessIsolation>
8+
<CrossGenTest>false</CrossGenTest>
69
</PropertyGroup>
710
<ItemGroup>
811
<Compile Include="$(MSBuildProjectName).cs" />

0 commit comments

Comments
 (0)