Skip to content

Commit

Permalink
Fix crossgenning of sparse COM interface types on non-Windows and add…
Browse files Browse the repository at this point in the history
… test (#40404)
  • Loading branch information
jkoritzinsky authored Aug 6, 2020
1 parent 1a39b6c commit 222415c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/coreclr/src/zap/zapimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,6 @@ void ZapImage::TryCompileMethodStub(LPVOID pContext, CORINFO_METHOD_HANDLE hStub
//-----------------------------------------------------------------------------
BOOL ZapImage::IsVTableGapMethod(mdMethodDef md)
{
#ifdef FEATURE_COMINTEROP
HRESULT hr;
DWORD dwAttributes;

Expand All @@ -1916,9 +1915,6 @@ BOOL ZapImage::IsVTableGapMethod(mdMethodDef md)

// If we make it to here we have a vtable gap method.
return TRUE;
#else
return FALSE;
#endif // FEATURE_COMINTEROP
}

//-----------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<!-- The Type Equivalence feature is unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
</PropertyGroup>
<ItemGroup>
<Compile Include="Types.cs" />
Expand Down
2 changes: 0 additions & 2 deletions src/tests/baseservices/typeequivalence/impl/TypeImpl.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<!-- The Type Equivalence feature is unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
</PropertyGroup>
<ItemGroup>
<Compile Include="Impls.cs" />
Expand Down
4 changes: 4 additions & 0 deletions src/tests/baseservices/typeequivalence/simple/Simple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ private static void TestGenericInterfaceEquivalence()

public static int Main(string[] noArgs)
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return 100;
}
try
{
InterfaceTypesFromDifferentAssembliesAreEquivalent();
Expand Down
2 changes: 0 additions & 2 deletions src/tests/baseservices/typeequivalence/simple/Simple.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<!-- The Type Equivalence feature is unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
</PropertyGroup>
<ItemGroup>
<Compile Include="Simple.cs" />
Expand Down

0 comments on commit 222415c

Please sign in to comment.