File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ namespace VSharp.CSharpUtils;
10
10
11
11
public static class ExternMocker
12
12
{
13
- public static bool ExtMocksSupported =
13
+ public static readonly bool ExtMocksSupported =
14
14
! OperatingSystem . IsMacOS ( )
15
15
|| RuntimeInformation . OSArchitecture == Architecture . X86
16
16
|| RuntimeInformation . OSArchitecture == Architecture . X64 ;
17
17
18
+ public static readonly bool ShimSupported = Environment . Version . Major <= 6 ;
19
+
18
20
private static List < NativeDetour > _detours = new ( ) ;
19
21
20
22
public static IntPtr GetExternPtr ( string libName , string methodName )
Original file line number Diff line number Diff line change @@ -957,7 +957,7 @@ type internal ILInterpreter() as this =
957
957
isIntrinsic && ( Array.contains fullMethodName x.TrustedIntrinsics |> not )
958
958
959
959
member private x.ShouldMock ( method : Method ) fullMethodName =
960
- Loader.isShimmed fullMethodName
960
+ Loader.isShimmed fullMethodName && ExternMocker.ShimSupported
961
961
|| method.IsExternalMethod && not method.IsQCall
962
962
963
963
member private x.InstantiateThisIfNeed state thisOption ( method : Method ) =
You can’t perform that action at this time.
0 commit comments