Skip to content

Commit

Permalink
Merge pull request #85 from Faless/fix/godot3_mingw
Browse files Browse the repository at this point in the history
Workaround incorrect CC for 3.x mingw builds.
  • Loading branch information
Faless authored Feb 7, 2023
2 parents 5bc4b79 + c9a1efc commit d7032f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d7032f7

Please sign in to comment.