diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 59457c1eb9..7667132bd9 100644 --- a/SConstruct +++ b/SConstruct @@ -171,6 +171,9 @@ env['AS'] = prefix + "as" env['AR'] = prefix + "ar" env['RANLIB'] = prefix + "ranlib" +if 'ccache' in env['compiler_cache'] and 'clang++' in cpp_compiler: + env['ENV']['CCACHE_CPP2'] = 'yes' + if not GetOption("help"): try: compiler_ver = subprocess.check_output(env['CXX'].split() + ["-dumpversion"]).strip() |