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

Fix whole program optimization option for Windows #91759

Merged

Conversation

janvorli
Copy link
Member

@janvorli janvorli commented Sep 7, 2023

The recent change to clean up the way some options in Windows builds of the runtime are overridden missed the fact that the CMAKE_INTERPROCEDURAL_OPTIMIZATION cannot contain generator expressions and so it was always set to "off".

The fix is to set CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE and CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBUGINFO instead.

The recent change to cleanup the way some options in Windows builds of
the runtime are overriden missed the fact that the
CMAKE_INTERPROCEDURAL_OPTIMIZATION cannot contain generator expressions
and so it was always set to "off".

The fix is to set CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE and
CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBUGINFO instead.

I have also missed two places before where we were still adding /GL-.
@janvorli janvorli added this to the 9.0.0 milestone Sep 7, 2023
@janvorli janvorli self-assigned this Sep 7, 2023
@ghost
Copy link

ghost commented Sep 7, 2023

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

The recent change to clean up the way some options in Windows builds of the runtime are overridden missed the fact that the CMAKE_INTERPROCEDURAL_OPTIMIZATION cannot contain generator expressions and so it was always set to "off".

The fix is to set CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE and CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBUGINFO instead.

Author: janvorli
Assignees: janvorli
Labels:

area-Infrastructure-coreclr

Milestone: 9.0.0

@janvorli
Copy link
Member Author

janvorli commented Sep 7, 2023

cc: @elinor-fung

@jakobbotsch
Copy link
Member

image

👍

@janvorli janvorli deleted the fix-whole-program-optimization-option branch September 8, 2023 11:45
@ghost ghost locked as resolved and limited conversation to collaborators Oct 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants