X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=inline;f=scripts%2Fcommon%2Fscan-build.sh;h=5ef74c30787cc23d92d0bec0f0f8a21e3a44bc9f;hb=51c9c62db1805a4cdd96be18df4082f1ac5d81c5;hp=3782f4f32034c8118dd12e50b7999c31ebeef57a;hpb=6544f0ff082d9e49510062795ef5a68369faa69a;p=lttng-ci.git diff --git a/scripts/common/scan-build.sh b/scripts/common/scan-build.sh index 3782f4f..5ef74c3 100755 --- a/scripts/common/scan-build.sh +++ b/scripts/common/scan-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash -exu +#!/bin/bash # # Copyright (C) 2015 Jonathan Rajotte-Julien # Copyright (C) 2019 Michael Jeanson @@ -16,6 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +set -exu + # Required variables WORKSPACE=${WORKSPACE:-} @@ -45,6 +47,10 @@ mkdir -p "$TMPDIR" export TMPDIR +# Builds configured with '-Werror=missing-include-dirs' if this directory +# doesn't exist +mkdir -p "$DEPS_INC" + # temp directory to store the scan-build report SCAN_BUILD_TMPDIR=$(mktemp -d)