Skip to content

Commit

Permalink
Fix build with newer godot-cpp versions
Browse files Browse the repository at this point in the history
Force the new "disable_exceptions" argument to false (libdatachannel
needs exceptions to build).
  • Loading branch information
Faless committed Apr 12, 2024
1 parent 431df32 commit 3400e42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3400e42

Please sign in to comment.