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/iphone/detect.py | |
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/iphone/detect.py')
-rw-r--r-- | platform/iphone/detect.py | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py index 993a93ff89..d426b478bf 100644 --- a/platform/iphone/detect.py +++ b/platform/iphone/detect.py @@ -76,11 +76,22 @@ def configure(env): env['ENV']['PATH'] = env['IPHONEPATH'] + "/Developer/usr/bin/:" + env['ENV']['PATH'] - env['CC'] = '$IPHONEPATH/usr/bin/${ios_triple}clang' - env['CXX'] = '$IPHONEPATH/usr/bin/${ios_triple}clang++' - env['AR'] = '$IPHONEPATH/usr/bin/${ios_triple}ar' - env['RANLIB'] = '$IPHONEPATH/usr/bin/${ios_triple}ranlib' - env['S_compiler'] = '$IPHONEPATH/Developer/usr/bin/gcc' + compiler_path = '$IPHONEPATH/usr/bin/${ios_triple}' + s_compiler_path = '$IPHONEPATH/Developer/usr/bin/' + + ccache_path = os.environ.get("CCACHE") + if ccache_path == None: + env['CC'] = compiler_path + 'clang' + env['CXX'] = compiler_path + 'clang++' + env['S_compiler'] = s_compiler_path + 'gcc' + else: + # there aren't any ccache wrappers available for iOS, + # to enable caching we need to prepend the path to the ccache binary + env['CC'] = ccache_path + ' ' + compiler_path + 'clang' + env['CXX'] = ccache_path + ' ' + compiler_path + 'clang++' + env['S_compiler'] = ccache_path + ' ' + s_compiler_path + 'gcc' + env['AR'] = compiler_path + 'ar' + env['RANLIB'] = compiler_path + 'ranlib' ## Compile flags |