1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

SCons: Process platform-specific flags earlier

Some of the logic in SCons depends on flags that get overridden in the
platform-specific `detect.py`, so it needs to be processed first.

For example the Android/iOS/Web platforms override the default `target`
to `template_debug`, but this was processed too late so e.g. the logic
that sets `env.editor_build` would set it to true due to the default
`target` value in the environment being `editor`.
This commit is contained in:
Rémi Verschelde
2024-05-10 12:07:59 +02:00
parent e7dd6f11ed
commit 37cf266b57
3 changed files with 10 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ def get_min_target_api():
def get_flags():
return {
"arch": "arm64", # Default for convenience.
"arch": "arm64",
"target": "template_debug",
"supported": ["mono"],
}