Skip to content

Commit 5348e66

Browse files
authored
Merge pull request #1457 from Unity-Technologies/fix-1346334
Disabling com in the jit class libs as they are also disabled in the …
2 parents 1001788 + 4346a60 commit 5348e66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mcs/build/profiles/unityjit.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ profile-check:
1111
@:
1212

1313
DEFAULT_REFERENCES = mscorlib
14-
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -d:UNITY_JIT -d:UNITY -d:WIN_PLATFORM -nowarn:1699 -nostdlib $(PLATFORM_DEBUG_FLAGS)
14+
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -d:UNITY_JIT -d:UNITY -d:WIN_PLATFORM -d:DISABLE_COM -nowarn:1699 -nostdlib $(PLATFORM_DEBUG_FLAGS)
1515
API_BIN_PROFILE = v4.7.1
1616

1717
FRAMEWORK_VERSION = 4.5

mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public static object GetUniqueObjectForIUnknown (IntPtr unknown)
856856
throw new PlatformNotSupportedException ();
857857
}
858858

859-
#if !MOBILE || UNITY_AOT
859+
#if !MOBILE && !UNITY
860860
[MethodImplAttribute (MethodImplOptions.InternalCall)]
861861
public extern static bool IsComObject (object o);
862862
#else

0 commit comments

Comments
 (0)