godot/modules/openxr
Rémi Verschelde 3907e53ff6
SCons: Disable C++ exception handling
Upon investigating the extremely slow MSVC build times in #80513, I noticed
that while Godot policy is to never use exceptions, we weren't enforcing it
with compiler flags, and thus still included exception handling code and
stack unwinding.

This is wasteful on multiple aspects:

- Binary size: Around 20% binary size reduction with exceptions disabled
  for both MSVC and GCC binaries.
- Compile time:
  * More than 50% build time reduction with MSVC.
  * 10% to 25% build time reduction with GCC + LTO.
- Performance: Possibly, needs to be benchmarked.

Since users may want to re-enable exceptions in their own thirdparty code
or the libraries they compile with Godot, this behavior can be toggled with
the `disable_exceptions` SCons option, which defaults to true.
2023-08-16 10:23:34 +02:00
..
action_map Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
doc_classes Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +02:00
editor Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
extensions Fix casts of XR handles in OpenXRExtensionWrapperExtension 2023-08-15 14:55:19 +02:00
scene Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
config.py Compile OpenXR into MacOS build 2023-07-19 00:02:47 +10:00
openxr_api_extension.cpp Add GDExtension support for OpenXR extension wrappers 2023-07-26 10:27:14 +02:00
openxr_api_extension.h Add GDExtension support for OpenXR extension wrappers 2023-07-26 10:27:14 +02:00
openxr_api.cpp Fix various typos with codespell 2023-08-07 13:09:47 +02:00
openxr_api.h Allow unbundling OpenXR (for Linux distros) 2023-06-16 16:25:04 +02:00
openxr_interface.cpp Merge pull request #73558 from Malcolmnixon/render-target-size-multiplier 2023-04-11 19:40:02 +02:00
openxr_interface.h Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
openxr_util.cpp Allow unbundling OpenXR (for Linux distros) 2023-06-16 16:25:04 +02:00
openxr_util.h Allow unbundling OpenXR (for Linux distros) 2023-06-16 16:25:04 +02:00
register_types.cpp Add GDExtension support for OpenXR extension wrappers 2023-07-26 10:27:14 +02:00
register_types.h
SCsub SCons: Disable C++ exception handling 2023-08-16 10:23:34 +02:00
util.h Add GDExtension support for OpenXR extension wrappers 2023-07-26 10:27:14 +02:00