Don't set onlyParseItemsDefinedInAssembly in Composite mode (#56050)
authorEgor Bogatov <egorbo@gmail.com>
Sat, 24 Jul 2021 08:28:33 +0000 (11:28 +0300)
committerGitHub <noreply@github.com>
Sat, 24 Jul 2021 08:28:33 +0000 (11:28 +0300)
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ProfileDataManager.cs

index 0685f3e..07dfaa5 100644 (file)
@@ -45,7 +45,11 @@ namespace ILCompiler
             {
                 // Parse MIbc Data
 
-                string onlyParseItemsDefinedInAssembly = nonLocalGenericsHome == null ? inputModules.First().Assembly.GetName().Name : null;
+                string onlyParseItemsDefinedInAssembly = null;
+                if (nonLocalGenericsHome == null && !compilationGroup.IsCompositeBuildMode)
+                {
+                    onlyParseItemsDefinedInAssembly = inputModules.First().Assembly.GetName().Name;
+                }
                 HashSet<string> versionBubbleModuleStrings = new HashSet<string>();
                 foreach (ModuleDesc versionBubbleModule in versionBubble)
                 {