diff options
| author | Rhody Lugo | 2017-11-09 20:07:28 -0400 |
|---|---|---|
| committer | Rhody Lugo | 2017-11-13 15:05:26 -0400 |
| commit | 7f3ecd4227edd4deb632eae9cbaeb5567a959a14 (patch) | |
| tree | f95492ccd05693a05ba92be416e710a63384eafe /platform/android/detect.py | |
| parent | 0de6cba7e7e114f71fabb3dbe02cf260f7d3e2c6 (diff) | |
| download | godot-7f3ecd4227edd4deb632eae9cbaeb5567a959a14.tar.gz godot-7f3ecd4227edd4deb632eae9cbaeb5567a959a14.tar.zst godot-7f3ecd4227edd4deb632eae9cbaeb5567a959a14.zip | |
Diffstat (limited to 'platform/android/detect.py')
| -rw-r--r-- | platform/android/detect.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py index 966de832e..a3ada5cf5 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -173,8 +173,15 @@ def configure(env): # For Clang to find NDK tools in preference of those system-wide env.PrependENVPath('PATH', tools_path) - env['CC'] = compiler_path + '/clang' - env['CXX'] = compiler_path + '/clang++' + ccache_path = os.environ.get("CCACHE") + if ccache_path == None: + env['CC'] = compiler_path + '/clang' + env['CXX'] = compiler_path + '/clang++' + else: + # there aren't any ccache wrappers available for Android, + # 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['AR'] = tools_path + "/ar" env['RANLIB'] = tools_path + "/ranlib" env['AS'] = tools_path + "/as" |
