From a18aee7ed0bbec2fae3b9b7e1e9ac70c4070a767 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Tue, 13 Mar 2018 19:52:02 +0000 Subject: COMPMID-959: Suppress invalid parenthesis warn with clang and ccache Change-Id: I5610828abdb4a0201ebf9223d8d48dbfe3d0720e Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/124436 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) (limited to 'SConstruct') 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() -- cgit v1.2.1