summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-06-29 13:59:34 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-06-29 14:15:48 +0200
commitac3bdb361383610601116d730bd6f02fb2fe7f1c (patch)
treeddc198fc46cb40d2fd6935a0f5665f034a38c49b /SConstruct
parent931a7551f56e28b440a9887b557eecc9a840bda5 (diff)
downloadfork-godot-webrtc-native-ac3bdb361383610601116d730bd6f02fb2fe7f1c.tar.gz
fork-godot-webrtc-native-ac3bdb361383610601116d730bd6f02fb2fe7f1c.tar.bz2
fork-godot-webrtc-native-ac3bdb361383610601116d730bd6f02fb2fe7f1c.zip
Better normalize the GDNative build environment.
The "ios_min_version" is missing from godot-cpp-3.x, and the macos CC variable is not explicitely set to "clang". Since the values are passed to cmake, they used to cause unnecessary rebuilds of libdatchannel when compiling both version 3 and 4.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 58b501b..dfd237f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -57,6 +57,10 @@ if env["godot_version"] == "3":
if env["platform"] == "osx":
env["platform"] = "macos" # compatibility with old osx name
ARGUMENTS["platform"] = "macos"
+ env["CC"] = "clang" # CC is not set in 3.x and can result in it being "gcc".
+
+ if env["platform"] == "ios":
+ env["ios_min_version"] = "11.0"
# Normalize suffix
if env["platform"] in ["windows", "linux"]: