Browse Source

Merge pull request #84328 from akien-mga/4.1-re-disable-exceptions

[4.1] SCons: Re-disable exceptions for Android, iOS, and Web
Rémi Verschelde 1 year ago
parent
commit
2d3b2abcf6
3 changed files with 3 additions and 0 deletions
  1. 1 0
      platform/android/detect.py
  2. 1 0
      platform/ios/detect.py
  3. 1 0
      platform/web/detect.py

+ 1 - 0
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.
     ]
 
 

+ 1 - 0
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.
     ]
 
 

+ 1 - 0
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.
     ]