Skip to content

Commit

Permalink
Bump generic cycle detection cutoff for the test tree (#82074)
Browse files Browse the repository at this point in the history
There's a JIT test that expects being able to recurse a bit deeper than what we allow by default.
  • Loading branch information
MichalStrehovsky authored Feb 15, 2023
1 parent 115694a commit 9c4ab9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,9 @@

<!-- xunit calls MakeGenericType to check if something is IEquatable -->
<IlcArg Condition="'$(EagerlyValidateTypeConstruction)' != 'false'" Include="--feature:System.Reflection.IsTypeConstructionEagerlyValidated=false" />

<!-- Bump the generic cycle tolerance. There's at least one test with a cycle that is reachable at runtime to depth 6 -->
<IlcArg Include="--maxgenericcycle:7" />
</ItemGroup>

<Import Project="$(CoreCLRBuildIntegrationDir)Microsoft.DotNet.ILCompiler.SingleEntry.targets" Condition="'$(TestBuildMode)' == 'nativeaot'" />
Expand Down

0 comments on commit 9c4ab9e

Please sign in to comment.