forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix platform selection, let platforms override custom tools, and obey…
… user overrides of use_mingw Let the platforms optionally override the default scons environment tools via a `custom_tools` flag, so the default SConstruct only needs to set the defaults and not worry about each individual platform requirements. Users can also override the tools via `custom_tools`. Fix the order of initialization, so we can pick up the use_mingw option from all the different places where it can be set, and use it during environment initialization. This also fixes a related issue where, if a platform sets a default target in `get_flags`, if the platform doesn't support the `editor` target, and the user doesn't pass in the target in the command line, the `editor` target would be briefly selected during a portion of SConstruct execution, just long enough for some wrong variables to be set, and cause the build to fail, or include bad defines. Fixes godotengine#60719
- Loading branch information
Showing
3 changed files
with
154 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters