aboutsummaryrefslogtreecommitdiff
path: root/build_matrix.sh
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2021-07-31 17:15:09 +0100
committerDenis Ovsienko <denis@ovsienko.info>2021-07-31 17:21:10 +0100
commitf9403bf77aaf605e8f0f6441cbe75094f919b5a5 (patch)
tree5f76c04c901722bfe3431f2a3674e022827dfb62 /build_matrix.sh
parent05068a794ad98c040c5556b5ec574b0b1cf482a6 (diff)
CI: Introduce and use LIBPCAP_TAINTED. [skip appveyor]
Same as in tcpslice and tcpdump earlier. This should cover both Autoconf and CMake.
Diffstat (limited to 'build_matrix.sh')
-rwxr-xr-xbuild_matrix.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/build_matrix.sh b/build_matrix.sh
index 8ac70225..7343a6b8 100755
--- a/build_matrix.sh
+++ b/build_matrix.sh
@@ -6,6 +6,12 @@
: "${MATRIX_CC:=gcc clang}"
: "${MATRIX_CMAKE:=no yes}"
: "${MATRIX_REMOTE:=no yes}"
+# Set this variable to "yes" before calling this script to disregard all
+# warnings in a particular environment (CI or a local working copy). Set it
+# to "yes" in this script or in build.sh when a matrix subset is known to be
+# not warning-free because of the OS, the compiler or whatever other factor
+# that the scripts can detect both in and out of CI.
+: "${LIBPCAP_TAINTED:=no}"
# It calls the build.sh script which runs one build with setup environment
# variables: CC, CMAKE and REMOTE.
@@ -19,6 +25,7 @@ if [ -z "$PREFIX" ]; then
export PREFIX
fi
COUNT=0
+export LIBPCAP_TAINTED
touch .devel configure
for CC in $MATRIX_CC; do