Author: george.karpenkov Date: Thu Sep 21 15:12:49 2017 New Revision: 313927
URL: http://llvm.org/viewvc/llvm-project?rev=313927&view=rev Log: [Analyzer] Use CC environment variable to select analyzer path in SATestBuild. This change is required to easily test the given checkout of the analyzer, rather than the one bundled with a system compiler. Differential Revision: https://reviews.llvm.org/D38155 Modified: cfe/trunk/utils/analyzer/SATestBuild.py Modified: cfe/trunk/utils/analyzer/SATestBuild.py URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestBuild.py?rev=313927&r1=313926&r2=313927&view=diff ============================================================================== --- cfe/trunk/utils/analyzer/SATestBuild.py (original) +++ cfe/trunk/utils/analyzer/SATestBuild.py Thu Sep 21 15:12:49 2017 @@ -142,7 +142,10 @@ def getSBOutputDirName(IsReferenceBuild) #------------------------------------------------------------------------------ # Find Clang for static analysis. -Clang = which("clang", os.environ['PATH']) +if 'CC' in os.environ: + Clang = os.environ['CC'] +else: + Clang = which("clang", os.environ['PATH']) if not Clang: print "Error: cannot find 'clang' in PATH" sys.exit(-1) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits