From ac3bdb361383610601116d730bd6f02fb2fe7f1c Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Thu, 29 Jun 2023 13:59:34 +0200 Subject: 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. --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'SConstruct') 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"]: -- cgit v1.2.3