CONF_SINGLE_OBJ=--enable-single-obj-compilation;
fi
- if [[ "$CPPCHECK" != "" ]]; then
- git clone --depth=3 https://github.com/danmar/cppcheck.git -b master;
- make --directory cppcheck -j CXXFLAGS="-O3 -march=native -DNDEBUG";
+ git clone --depth=3 https://github.com/danmar/cppcheck.git
+ ~/cppcheck -b master;
+ make --directory ~/cppcheck -j CXXFLAGS="-O3 -march=native -DNDEBUG";
if [[ "$CPPCHECK" == "ALL_EXCEPT_UNUSED" ]]; then
CPPCHECK_ENABLE="-j16 --enable=information,performance,portability,style,warning";
else
extra/msvc_dbg.c tests/*.c tests/*.cc tools/*.c;
fi
- if [[ "$CPPCHECK" != "" ]]; then
- cppcheck/cppcheck -f --error-exitcode=2 -Ulong -DCPPCHECK
+ ~/cppcheck/cppcheck -f --error-exitcode=2 -Ulong -DCPPCHECK
-I include -I libatomic_ops/src $CPPCHECK_ENABLE
*.cc cord/*.c cord/tests/*.c extra/*.c extra/*.cpp
tests/*.c tests/*.cc tools/*.c;