Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crossgenning of sparse COM interface types on non-Windows and add test #40404

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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