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

SCons: Convert platform get_flags to dictionary

This commit is contained in:
Thaddeus Crews
2024-05-19 09:41:03 -05:00
parent 8e2141eac5
commit 896b003cc8
7 changed files with 38 additions and 36 deletions

View File

@@ -65,21 +65,21 @@ def get_doc_path():
def get_flags():
return [
("arch", "wasm32"),
("target", "template_debug"),
("builtin_pcre2_with_jit", False),
("vulkan", False),
return {
"arch": "wasm32",
"target": "template_debug",
"builtin_pcre2_with_jit": False,
"vulkan": False,
# Embree is heavy and requires too much memory (GH-70621).
("module_raycast_enabled", False),
"module_raycast_enabled": False,
# Use -Os to prioritize optimizing for reduced file size. This is
# particularly valuable for the web platform because it directly
# decreases download time.
# -Os reduces file size by around 5 MiB over -O3. -Oz only saves about
# 100 KiB over -Os, which does not justify the negative impact on
# run-time performance.
("optimize", "size"),
]
"optimize": "size",
}
def configure(env: "SConsEnvironment"):