From 3400e42f057460d98ae10102ead02747baa6420c Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 12 Apr 2024 19:40:29 +0200 Subject: [PATCH] Fix build with newer godot-cpp versions Force the new "disable_exceptions" argument to false (libdatachannel needs exceptions to build). --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SConstruct b/SConstruct index 54ecca5..26835f9 100644 --- a/SConstruct +++ b/SConstruct @@ -33,6 +33,9 @@ if "macos_deployment_target" not in ARGUMENTS: if "android_api_level" not in ARGUMENTS: ARGUMENTS["android_api_level"] = "28" +# Recent godot-cpp versions disables exceptions by default, but libdatachannel requires them. +ARGUMENTS["disable_exceptions"] = "no" + if env["godot_version"] == "3": if "platform" in ARGUMENTS and ARGUMENTS["platform"] == "macos": ARGUMENTS["platform"] = "osx" # compatibility with old osx name