1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

change matrix and enable caching for Android, iOS and macOS (cross-compile)

This commit is contained in:
Rhody Lugo
2017-11-12 19:02:47 -04:00
parent 49a12ddbc5
commit f09bbfa372
8 changed files with 355 additions and 43 deletions

View File

@@ -76,8 +76,15 @@ def configure(env):
else: # 64-bit, default
basecmd = root + "/target/bin/x86_64-apple-" + env["osxcross_sdk"] + "-"
env['CC'] = basecmd + "cc"
env['CXX'] = basecmd + "c++"
ccache_path = os.environ.get("CCACHE")
if ccache_path == None:
env['CC'] = basecmd + "cc"
env['CXX'] = basecmd + "c++"
else:
# there aren't any ccache wrappers available for OS X cross-compile,
# to enable caching we need to prepend the path to the ccache binary
env['CC'] = ccache_path + " " + basecmd + "cc"
env['CXX'] = ccache_path + " " + basecmd + "c++"
env['AR'] = basecmd + "ar"
env['RANLIB'] = basecmd + "ranlib"
env['AS'] = basecmd + "as"