Skip to content

Commit 9e759f9

Browse files
Disable ThreadingDiagnoserTests with ILCompiler 6.0.0-rc.1.21420.1 on osx-arm64
1 parent 36e9985 commit 9e759f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/BenchmarkDotNet.IntegrationTests/ThreadingDiagnoserTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
using System.Collections.Generic;
1515
using System.Linq;
1616
using System.Threading;
17+
using BenchmarkDotNet.Environments;
18+
using BenchmarkDotNet.Portability;
1719
using Xunit;
1820
using Xunit.Abstractions;
1921

@@ -29,8 +31,10 @@ public static IEnumerable<object[]> GetToolchains()
2931
{
3032
yield return new object[] { Job.Default.GetToolchain() };
3133

34+
bool isOsxArm64 = RuntimeInformation.GetCurrentPlatform() == Platform.Arm64 && RuntimeInformation.IsMacOSX();
3235
if (!ContinuousIntegration.IsGitHubActionsOnWindows() // no native dependencies
33-
&& !ContinuousIntegration.IsAppVeyorOnWindows()) // too time consuming for AppVeyor (1h limit)
36+
&& !ContinuousIntegration.IsAppVeyorOnWindows() // too time consuming for AppVeyor (1h limit)
37+
&& !isOsxArm64) // Native compilation does not support targeting osx-arm64 yet. https://github.com/dotnet/corert/issues/4589
3438
{
3539
yield return new object[]{ NativeAotToolchain.CreateBuilder()
3640
.UseNuGet(

0 commit comments

Comments
 (0)