Merge pull request #2784 from matt335672/v0_9_z3
Cppcheck 2.8 removed the dependency on z3
This commit is contained in:
commit
4db9323413
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -143,7 +143,7 @@ jobs:
|
||||
with:
|
||||
path: ~/cppcheck.local
|
||||
key: ${{ steps.os.outputs.image }}-build-${{ env.cache-name }}-${{ env.CPPCHECK_VER }}
|
||||
- run: sudo scripts/install_cppcheck_dependencies_with_apt.sh
|
||||
- run: sudo scripts/install_cppcheck_dependencies_with_apt.sh $CPPCHECK_VER
|
||||
- run: ./bootstrap
|
||||
- run: scripts/install_cppcheck.sh $CPPCHECK_REPO $CPPCHECK_VER
|
||||
- run: scripts/run_cppcheck.sh -v $CPPCHECK_VER
|
||||
|
@ -128,7 +128,12 @@ fi
|
||||
# CFGDIR is needed for cppcheck before 1.86
|
||||
make_args="FILESDIR=$FILESDIR PREFIX=$FILESDIR CFGDIR=$FILESDIR"
|
||||
;;
|
||||
*) make_args="FILESDIR=$FILESDIR PREFIX=$FILESDIR USE_Z3=yes"
|
||||
2.8 | 2.9 | 2.1*)
|
||||
# Cppcheck 2.8 removed the dependency on z3
|
||||
make_args="FILESDIR=$FILESDIR PREFIX=$FILESDIR"
|
||||
;;
|
||||
2.*)
|
||||
make_args="FILESDIR=$FILESDIR PREFIX=$FILESDIR USE_Z3=yes"
|
||||
# Check that the Z3 development files appear to be installed
|
||||
# before trying to create z3_version.h. Otherwise we may
|
||||
# mislead the user as to what needs to be done.
|
||||
@ -138,6 +143,7 @@ fi
|
||||
if [ ! -f /usr/include/z3_version.h ]; then
|
||||
create_z3_version_h
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# Use all available CPUs
|
||||
|
@ -3,5 +3,27 @@ set -eufx
|
||||
|
||||
PACKAGES="libz3-dev z3"
|
||||
|
||||
apt-get update
|
||||
apt-get -yq --no-install-suggests --no-install-recommends install $PACKAGES
|
||||
usage()
|
||||
{
|
||||
echo "** Usage: $0 <version-tag>"
|
||||
echo " e.g. $0 1.90"
|
||||
} >&2
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
CPPCHECK_VER="$1"
|
||||
|
||||
case "$CPPCHECK_VER" in
|
||||
1.*)
|
||||
# no dependencies
|
||||
;;
|
||||
2.8 | 2.9 | 2.1*)
|
||||
# Cppcheck 2.8 removed the dependency on z3
|
||||
;;
|
||||
2.*)
|
||||
apt-get update
|
||||
apt-get -yq --no-install-suggests --no-install-recommends install $PACKAGES
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user