Skip to content

Commit 07456fb

Browse files
committed
There's no need to restrict the TestRuntime.IsCoreCLR method to .NET code only.
The logic works just as well on legacy Xamarin as well.
1 parent 7d7b00b commit 07456fb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/common/TestRuntime.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,6 @@ public static bool IsOptimizeAll {
11751175
}
11761176
}
11771177

1178-
#if NET
11791178
// There's no official API yet for distinguishing between CoreCLR and MonoVM (https://github.com/dotnet/runtime/issues/49481)
11801179
// (checking for the Mono.Runtime type doesn't work, because the BCL is the same, so there's never a Mono.Runtime type).
11811180
// However, the System.__Canon type seems to be CoreCLR-only.
@@ -1184,5 +1183,4 @@ public static bool IsCoreCLR {
11841183
return Type.GetType ("System.__Canon") is not null;
11851184
}
11861185
}
1187-
#endif
11881186
}

0 commit comments

Comments
 (0)