summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-02-07 23:14:09 +0100
committerGitHub <noreply@github.com>2023-02-07 23:14:09 +0100
commitd7032f7b852e2e0acfc6cc1cdd1a17238529abac (patch)
tree15a8c99098111c4f317fc11ad85044f114bb233e
parent5bc4b7943556fabf37a4575f0dcfbcb17e5505b1 (diff)
parentc9a1efc7a07feae4f2b9cc8e2547d79962311a03 (diff)
downloadfork-godot-webrtc-native-d7032f7b852e2e0acfc6cc1cdd1a17238529abac.tar.gz
fork-godot-webrtc-native-d7032f7b852e2e0acfc6cc1cdd1a17238529abac.tar.bz2
fork-godot-webrtc-native-d7032f7b852e2e0acfc6cc1cdd1a17238529abac.zip
Merge pull request #85 from Faless/fix/godot3_mingw
Workaround incorrect CC for 3.x mingw builds.
-rw-r--r--SConstruct8
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index bdb4c64..8317fb2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -68,6 +68,14 @@ if env["godot_version"] == "3":
target_compat = "template_" + env["target"]
env["suffix"] = ".{}.{}.{}".format(env["platform"], target_compat, env["arch_suffix"])
env["debug_symbols"] = False
+
+ # Set missing CC for MinGW from upstream build module.
+ if env["platform"] == "windows" and sys.platform != "win32" and sys.platform != "msys":
+ # Cross-compilation using MinGW
+ if env["bits"] == "64":
+ env["CC"] = "x86_64-w64-mingw32-gcc"
+ elif env["bits"] == "32":
+ env["CC"] = "i686-w64-mingw32-gcc"
else:
ARGUMENTS["ios_min_version"] = "11.0"
env = SConscript("godot-cpp/SConstruct").Clone()