-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Rework bootstrap layout usage for AOT publish of cdac project #122471
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
Co-authored-by: Jeremy Koritzinsky <Jeremy.Koritzinsky@microsoft.com>
|
Tagging subscribers to this area: @hoyosjs |
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.
Pull request overview
This PR refactors the bootstrap layout configuration for AOT publishing in the cdac project. Instead of broadly passing UseBootstrapLayout to all subprojects based on IsSourceProject, it introduces a new NeedsAotPublish property that projects can opt into, making the bootstrap layout activation more explicit and targeted.
Key changes:
- Introduced
NeedsAotPublishproperty to explicitly mark projects requiring AOT publish - Removed global
UseBootstrapLayoutpropagation from subproject.props - Consolidated
UseLocalTargetingRuntimePacklogic into eng/targetingpacks.targets
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/native/managed/subproject.props | Removed automatic propagation of UseBootstrapLayout to subprojects |
| src/native/managed/cdac/mscordaccore_universal/mscordaccore_universal.csproj | Added NeedsAotPublish property to explicitly opt into AOT publishing |
| src/native/managed/Directory.Build.targets | Changed condition to use NeedsAotPublish instead of IsSourceProject for importing native-library.targets |
| src/native/managed/Directory.Build.props | Refactored to conditionally set UseBootstrapLayout based on NeedsAotPublish and UseBootstrap; changed import condition for native-library.props |
| eng/targetingpacks.targets | Consolidated UseLocalTargetingRuntimePack logic by adding UseBootstrapLayout to the condition, replacing property group previously in Directory.Build.props |
|
some failures look related |
Should fix the failures with a minimal diff.
|
/ba-g wasm test helix bad exit |
The cdac was setting a slew of properties that had cascading effects on the bootstrap targetting pack logic. Simplify this to only kick in when using AOT publishing in-build.