mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-08 22:42:05 +08:00
dd778596b7
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
19 lines
378 B
Bash
Executable File
19 lines
378 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
: "${CPPCHECK_DIR:=$DIR/cppcheck/}"
|
|
|
|
if [ ! -d "$CPPCHECK_DIR" ]; then
|
|
git clone https://github.com/danmar/cppcheck.git $CPPCHECK_DIR
|
|
fi
|
|
|
|
cd $CPPCHECK_DIR
|
|
|
|
VERS="2.16.0"
|
|
git fetch --all --tags --force
|
|
git checkout $VERS
|
|
|
|
#make clean
|
|
make MATCHCOMPILTER=yes CXXFLAGS="-O2" -j8
|