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.
This commit is contained in:
Fabio Alessandrelli
2023-06-29 13:59:34 +02:00
parent 931a7551f5
commit ac3bdb3613

View File

@@ -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"]: