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

SCons: Refactor handling of production flag and per-platform LTO defaults #65745

Merged

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented Sep 13, 2022

Fixup to #63288.
Supersedes #65583, see that PR for the bug report.

Co-authored-by: @Cyberrebell

@akien-mga akien-mga added bug topic:buildsystem regression cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Sep 13, 2022
@akien-mga akien-mga added this to the 4.0 milestone Sep 13, 2022
@akien-mga akien-mga requested a review from a team as a code owner September 13, 2022 15:03
@akien-mga akien-mga force-pushed the scons-production-lto-earlier branch from 2d5a991 to 91fd93b Compare September 13, 2022 15:06
@akien-mga akien-mga marked this pull request as draft September 13, 2022 15:24
@akien-mga
Copy link
Member Author

I'll need to dig a bit deeper, I moved the C++ flags before configure too as I figured this would make sense so that configure can refer to them if needed, but this breaks MSVC build as env.msvc is not defined yet - which also means it's not going to work in the production logic. Probably also doesn't work in #65583 either then.

@akien-mga akien-mga force-pushed the scons-production-lto-earlier branch from 91fd93b to 35a15e6 Compare September 19, 2022 16:13
@akien-mga akien-mga changed the title SCons: Handle production flag before configure SCons: Refactor handling of production flag and per-platform LTO defaults Sep 19, 2022
@akien-mga akien-mga marked this pull request as ready for review September 19, 2022 16:15
@akien-mga akien-mga requested review from a team as code owners September 19, 2022 16:15
@akien-mga akien-mga merged commit aa553f4 into godotengine:master Sep 20, 2022
@akien-mga akien-mga deleted the scons-production-lto-earlier branch September 20, 2022 07:46
@akien-mga
Copy link
Member Author

Cherry-picked for 3.6.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Sep 20, 2022
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.

1 participant