Re-enable multimodule testing (#75590)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Wed, 14 Sep 2022 12:15:21 +0000 (21:15 +0900)
committerGitHub <noreply@github.com>
Wed, 14 Sep 2022 12:15:21 +0000 (05:15 -0700)
Resolves #66191.

I no longer see the warning or the link.exe failure. This likely was a link.exe bug like I suspected in the issue based on available evidence.

Of course we also regressed multimodule mode so I'm fixing that too.

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
src/tests/nativeaot/SmokeTests/MultiModule/MultiModule.csproj

index 417d456..e78e9b0 100644 (file)
@@ -16,7 +16,7 @@ The .NET Foundation licenses this file to you under the MIT license.
 
   <!-- Set defaults for unspecified properties -->
   <PropertyGroup>
-    <NativeLib Condition="'$(OutputType)' == 'Library' and '$(NativeLib)' == ''">Shared</NativeLib>
+    <NativeLib Condition="'$(OutputType)' == 'Library' and '$(NativeLib)' == '' and '$(IlcMultiModule)' != 'true'">Shared</NativeLib>
     <NativeIntermediateOutputPath Condition="'$(NativeIntermediateOutputPath)' == ''">$(IntermediateOutputPath)native\</NativeIntermediateOutputPath>
     <NativeOutputPath Condition="'$(NativeOutputPath)' == ''">$(OutputPath)native\</NativeOutputPath>
     <NativeCompilationDuringPublish Condition="'$(NativeCompilationDuringPublish)' == ''">true</NativeCompilationDuringPublish>
index a213d78..7ab77cd 100644 (file)
@@ -8,9 +8,6 @@
     <!-- This test always runs as multimodule. It's not supported if we don't have framework object files. -->
     <CLRTestTargetUnsupported Condition="'$(BuildNativeAotFrameworkObjects)' != 'true'">true</CLRTestTargetUnsupported>
     <IlcMultiModule>true</IlcMultiModule>
-
-    <!-- https://github.com/dotnet/runtime/issues/66191 -->
-    <CLRTestTargetUnsupported>true</CLRTestTargetUnsupported>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="MultiModule.cs" />