You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
change matrix and enable caching for Android, iOS and macOS (cross-compile)
This commit is contained in:
@@ -84,8 +84,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"
|
||||
|
||||
Reference in New Issue
Block a user