Skip to content
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

Switch auto initializer targets to add via BeforeClCompileTargets #5003

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

codendone
Copy link
Contributor

Add auto initializer targets via <BeforeClCompileTargets> (rather than BeforeTargets="ClCompile") to get better timing for picking up added compiler options. This helps to ensure they are added after dynmically-added compiler options, such as /arm64ec.

A separate AddUndockedRegFreeWinRTCppDefines target was created to ensure those global defines are still added with the same timing they had previously. (I'm not sure if those global defines are required, but that is a question for another day.)

…iming for picking up added compiler options.
@codendone
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@codendone codendone merged commit 430b3a2 into main Jan 4, 2025
26 checks passed
@codendone codendone deleted the user/codendone/targetsTimingFix branch January 4, 2025 05:45
codendone added a commit that referenced this pull request Jan 10, 2025
… timing for picking up added compiler options. (#5003)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants