From 360ba33e4cf33d276d7b5256cb47e2024ce063c9 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 4 Feb 2019 11:05:14 +0100 Subject: [PATCH] donate-cpu.py: Use Boost library configuration if appropriate (#1587) Add check to only use boost library if boost.cfg exists since it is very new. If the boost.cfg does not exist Cppcheck would exit with an error and we would not get the desired results. For now the boost library configuration detection is commented out. It should be enabled after the release of Cppcheck 1.87. Tested locally. --- tools/donate-cpu.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/donate-cpu.py b/tools/donate-cpu.py index 1c0046fed..93d163186 100644 --- a/tools/donate-cpu.py +++ b/tools/donate-cpu.py @@ -218,7 +218,7 @@ def hasInclude(path, includes): return False -def scanPackage(workPath, cppcheck, jobs): +def scanPackage(workPath, cppcheckPath, jobs): print('Analyze..') os.chdir(workPath) libraries = ' --library=posix' @@ -234,12 +234,13 @@ def scanPackage(workPath, cppcheck, jobs): libraries += ' --library=wxwidgets' if hasInclude('temp', ['']): libraries += ' --library=zlib' -# if hasInclude('temp', ['