diff options
author | Rhody Lugo <rhodylugo@gmail.com> | 2017-11-09 20:07:28 -0400 |
---|---|---|
committer | Rhody Lugo <rhodylugo@gmail.com> | 2017-11-13 15:05:26 -0400 |
commit | 7f3ecd4227edd4deb632eae9cbaeb5567a959a14 (patch) | |
tree | f95492ccd05693a05ba92be416e710a63384eafe /platform/osx | |
parent | 0de6cba7e7e114f71fabb3dbe02cf260f7d3e2c6 (diff) | |
download | redot-engine-7f3ecd4227edd4deb632eae9cbaeb5567a959a14.tar.gz |
change matrix and enable caching for Android, iOS and macOS (cross-compile)
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/detect.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index 31032659b6..c24bd98bf6 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -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" |