Skip to content

Commit 7a7c00f

Browse files
xperiandriclaude
andauthored
build: compile the test project without parallel compilation (#41)
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 58af8f1 commit 7a7c00f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎tests/FSharp.Collections.Immutable.Tests/FSharp.Collections.Immutable.Tests.fsproj‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
<IsTestProject>true</IsTestProject>
1111
</PropertyGroup>
1212

13+
<PropertyGroup>
14+
<!--
15+
The F# compiler fails now and then with "FS0073: internal error: Undefined or unsolved type variable: 'C" while it
16+
compiles this project in Release (the generic contract classes, such as SeqLikeAccessContract<'C>). The error is
17+
intermittent, it comes more often on runners with few cores, and it disappears when the compiler works sequentially:
18+
0 failures in 72 builds, where 6 of 66 builds failed without the switch. The switch costs about one second per build.
19+
The compiler marks the switch as meant for tests only (warning FS0075), so the warning is silenced.
20+
Reported to the compiler: https://github.com/dotnet/fsharp/issues/20812. Remove the switch when that issue is fixed.
21+
-->
22+
<ParallelCompilation>false</ParallelCompilation>
23+
<NoWarn>$(NoWarn);FS0075</NoWarn>
24+
</PropertyGroup>
25+
1326
<ItemGroup>
1427
<Content Include="testconfig.json">
1528
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)