diff --git a/platform/android/detect.py b/platform/android/detect.py index 33c6565789..c99fff445e 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -68,6 +68,7 @@ def get_flags(): return [ ("arch", "arm64"), # Default for convenience. ("target", "template_debug"), + ("disable_exceptions", True), # Reduces size. ] diff --git a/platform/ios/detect.py b/platform/ios/detect.py index 40eb61abc8..2f33e03b04 100644 --- a/platform/ios/detect.py +++ b/platform/ios/detect.py @@ -49,6 +49,7 @@ def get_flags(): ("arch", "arm64"), # Default for convenience. ("target", "template_debug"), ("use_volk", False), + ("disable_exceptions", True), # Reduces size. ] diff --git a/platform/web/detect.py b/platform/web/detect.py index dfc11a22cb..b64c5a40e7 100644 --- a/platform/web/detect.py +++ b/platform/web/detect.py @@ -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. ]