File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
class/corlib/System.Runtime.InteropServices Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ PROFILE_MCS_FLAGS = \
3131 -d:UNITY \
3232 -d:UNITY_AOT \
3333 -d:MOBILE,MOBILE_LEGACY \
34- -d:DISABLE_COM \
3534 -d:FULL_AOT_DESKTOP \
3635 -d:FULL_AOT_RUNTIME \
3736 $(PLATFORM_FLAGS ) \
@@ -46,4 +45,12 @@ NO_INSTALL = yes
4645AOT_FRIENDLY_PROFILE = yes
4746ALWAYS_AOT_BCL = yes
4847MOBILE_PROFILE = yes
49- NO_SRE = yes
48+ NO_SRE = yes
49+
50+ ifeq ($(HOST_PLATFORM ) ,macos)
51+ PROFILE_MCS_FLAGS += -d:DISABLE_COM
52+ endif
53+
54+ ifeq ($(HOST_PLATFORM ) ,linux)
55+ PROFILE_MCS_FLAGS += -d:DISABLE_COM
56+ endif
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ profile-check:
1111 @:
1212
1313DEFAULT_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 -d:DISABLE_COM - 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 -nowarn:1699 -nostdlib $(PLATFORM_DEBUG_FLAGS )
1515API_BIN_PROFILE = v4.7.1
1616
1717FRAMEWORK_VERSION = 4.5
@@ -20,8 +20,10 @@ XBUILD_VERSION = 4.0
2020ifeq ($(HOST_PLATFORM ) ,macos)
2121MONO_FEATURE_APPLETLS =1
2222ENABLE_GSS =1
23+ PROFILE_MCS_FLAGS += -d:DISABLE_COM
2324endif
2425
2526ifeq ($(HOST_PLATFORM ) ,linux)
2627ENABLE_GSS =1
28+ PROFILE_MCS_FLAGS += -d:DISABLE_COM
2729endif
Original file line number Diff line number Diff line change @@ -856,7 +856,7 @@ public static object GetUniqueObjectForIUnknown (IntPtr unknown)
856856 throw new PlatformNotSupportedException ( ) ;
857857 }
858858
859- #if ( ! MOBILE && ! UNITY ) || UNITY_AOT
859+ #if ( ! MOBILE && ! DISABLE_COM ) || ( UNITY_AOT && ! DISABLE_COM )
860860 [ MethodImplAttribute ( MethodImplOptions . InternalCall ) ]
861861 public extern static bool IsComObject ( object o ) ;
862862#else
You can’t perform that action at this time.
0 commit comments