-
Notifications
You must be signed in to change notification settings - Fork 5k
Only build cdac-build-tool when we need to build runtime #109719
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
Conversation
Tagging subscribers to this area: @hoyosjs |
src/coreclr/runtime-prereqs.proj
Outdated
@@ -14,7 +14,7 @@ | |||
<Import Project="$(RepositoryEngineeringDir)nativepgo.targets" /> | |||
|
|||
<ItemGroup> | |||
<ProjectReference Include="tools\cdac-build-tool\cdac-build-tool.csproj" ReferenceOutputAssembly="false" /> | |||
<ProjectReference Condition="'$(ClrRuntimeSubset)' == 'true'" Include="tools\cdac-build-tool\cdac-build-tool.csproj" ReferenceOutputAssembly="false" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still some twists and turns in subset mappings to get these right but we can use this, otherwise unused, property:
<ProjectReference Condition="'$(ClrRuntimeSubset)' == 'true'" Include="tools\cdac-build-tool\cdac-build-tool.csproj" ReferenceOutputAssembly="false" /> | |
<ProjectReference Condition="'$(ClrDefaultRuntimeBuildSubsets)' != ''" Include="tools\cdac-build-tool\cdac-build-tool.csproj" ReferenceOutputAssembly="false" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would this do? From my reading we set ClrDefaultRuntimeBuildSubsets
unconditionally. I'm mostly trying to avoid building this for build.sh clr.iltools
which is what ILLinker testing needs and doesn't need cdac-build-tool (but currently builds it).
Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
Related to #109718.