SCons: Re-disable exceptions for Android, iOS, and Web

We made a mistake when cherry-picking #80612 with 269b115d9c,
where the global flag was defaulted to false to preserve the 4.1-stable behavior for desktop
platforms, but we forgot that the refactoring removed the force disabling of exceptions for
Android, iOS, and Web.

This reintroduces this behavior so it should be back to the same as in 4.1/4.1.1, and the
export templates should get back to their original size.

Only difference, the old code used to keep exceptions for the Web editor, but I see no reason
for it, so I disable them like with the templates.
This commit is contained in:
Rémi Verschelde 2023-11-01 22:14:49 +01:00
parent 65f5865d11
commit 1e1d91df6a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
3 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,7 @@ def get_flags():
return [
("arch", "arm64"), # Default for convenience.
("target", "template_debug"),
("disable_exceptions", True), # Reduces size.
]

View File

@ -49,6 +49,7 @@ def get_flags():
("arch", "arm64"), # Default for convenience.
("target", "template_debug"),
("use_volk", False),
("disable_exceptions", True), # Reduces size.
]

View File

@ -69,6 +69,7 @@ def get_flags():
# 100 KiB over -Os, which does not justify the negative impact on
# run-time performance.
("optimize", "size"),
("disable_exceptions", True), # Reduces size.
]