Skip to content

Commit f9c5e1a

Browse files
authored
Avoid building JITs for cross tools when unnecessary (#116332)
Makes the builds that happen in the SPMI pipelines a bit faster. Maybe helps in some other cases too.
1 parent 259204a commit f9c5e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/Subsets.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@
358358
</PropertyGroup>
359359

360360
<ItemGroup>
361-
<!-- When building cross components, always build the JITs. We will need them for running crossgen2 and ILC in the build. -->
362-
<_CrossToolSubset Condition="'$(_BuildCrossComponents)' == 'true'" Include="ClrAllJitsSubset=true" />
361+
<!-- crossgen2/ILC have dependencies on the JITs, so build them if the cross component includes crossgen2/ILC. -->
362+
<_CrossToolSubset Condition="'$(_BuildCrossComponents)' == 'true' and ($(_subset.Contains('+clr.tools+')) or $(_subset.Contains('+clr.nativecorelib+')) or $(_subset.Contains('+clr.crossarchtools+')))" Include="ClrAllJitsSubset=true" />
363363
<!-- When targeting Windows, we need to build a copy of the diagnostic libraries that can run on the host to enable remote debugging of a local build. -->
364364
<_CrossToolSubset Condition="'$(_BuildCrossComponents)' == 'true' and '$(TargetsWindows)' == 'true'" Include="ClrDebugSubset=true" />
365365
<!--

0 commit comments

Comments
 (0)