../../SCIQLOP-Initialisation/ here you force build dir position since ../../ is relative to build dir not script then SCIQLOP-Initialisation isn't necessary the repo name
@@ -1,20 +1,18 | |||
|
1 | 1 | |
|
2 | QT_PATH=".../Qt/5.8/gcc_64/lib/cmake/" | |
|
3 | ||
|
4 | 2 | export CC=/usr/libexec/ccc-analyzer |
|
5 | 3 | export CXX=/usr/libexec/c++-analyzer |
|
6 | 4 | export CCC_CC=clang |
|
7 | 5 | export CCC_CXX=clang++ |
|
8 | 6 | export LD=clang++ |
|
9 | 7 | export CCC_ANALYZER_VERBOSE=1 |
|
10 | 8 | |
|
11 | 9 | LD_LIBRARY_PATH=/usr/local/lib64 |
|
12 | 10 | export LD_LIBRARY_PATH |
|
13 | 11 | |
|
14 | 12 | rm -rf build_clang-analyzer |
|
15 | 13 | mkdir build_clang-analyzer |
|
16 | 14 | cd build_clang-analyzer |
|
17 | 15 | |
|
18 |
scan-build cmake |
|
|
16 |
scan-build cmake -DCMAKE_CXX_COMPILER=clazy -DENABLE_ANALYSIS=false -DENABLE_CPPCHECK=false -DENABLE_FORMATTING=false -DENABLE_CHECKSTYLE=false -BUILD_DOCUMENTATION=false -BUILD_TESTS=false -DCMAKE_BUILD_TYPE=Debug ../../SCIQLOP-Initialisation/
I think it's not a good idea to build something in the source. But you are right, it's not beautifull to give the source dir like that. normaly, the script has to be done to works on team city, then each local version can be edit to match the correct path. The script have to be an helper for the make analyze target and can be edited to work correctly. |
|
|
19 | 17 | |
|
20 | 18 | scan-build -o clang-analyzer-output make -j2 |
Unmatched/outdated inline comments below
|
|||
Just remove /usr/libexec on UNIX it is in the PATH Ok, will change this file when we have time to continue on the analyzer |