You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[JS, Android] Re-add "no-exceptions" for export templates builds with ICU.
This commit is contained in:
@@ -258,8 +258,10 @@ def configure(env):
|
||||
env.Append(CPPFLAGS=["-isystem", env["ANDROID_NDK_ROOT"] + "/sources/cxx-stl/llvm-libc++abi/include"])
|
||||
|
||||
# Disable exceptions and rtti on non-tools (template) builds
|
||||
if env["tools"] or env["builtin_icu"]:
|
||||
if env["tools"]:
|
||||
env.Append(CXXFLAGS=["-frtti"])
|
||||
elif env["builtin_icu"]:
|
||||
env.Append(CXXFLAGS=["-frtti", "-fno-exceptions"])
|
||||
else:
|
||||
env.Append(CXXFLAGS=["-fno-rtti", "-fno-exceptions"])
|
||||
# Don't use dynamic_cast, necessary with no-rtti.
|
||||
|
||||
Reference in New Issue
Block a user