Added iwyu jobs

This commit is contained in:
Johannes Lenzen
2021-01-05 11:09:54 +01:00
parent 87f2365d20
commit bd0ac33bb4
6 changed files with 63 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
COMPILER=$1
LANGUAGE=$2
BUILD_TYPE=$3
IWYU=$4
# Exit script on any error
set -e
@@ -56,4 +57,10 @@ if [ "$BUILD_TYPE" == "release" ]; then
else
export BUILD_TYPE=debug
BUILDPATH="$BUILDPATH-debug"
fi
fi
if [ "$IWYU" == "IWYU" ]; then
echo "Include what you use enabled.";
BUILDPATH="$BUILDPATH-iwyu"
OPTIONS="$OPTIONS -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
fi