rpm-ostree/ci/clang-build-check.sh
Colin Walters 36566e406e build-sys: Add --enable-werror, rework compiler flags
So...at some point we somehow lost `-Wall` in our
default compiler flags which means we were missing some
potentially important warnings.  And
we used to have `-Werror` on in CI which combined
with the above was strongly opinionated about not
landing warnings in git master.

Our default stance here remains the same; we have
an opinionated set of `-Werror=` that applies in
*all* configurations.   However that set moves
into Automake - I don't think we need to do
compiler version detection anymore, we can assume
a modern compiler.

We also add back in `-Wall` by default now.

Further in CI, add `-Werror`.  The implementation
here is in our buildsystem rather than
`export CXXFLAGS=-Werror` because unfortunately
we have to fix things in libdnf too, and I don't
want to block entirely on that.
2021-02-08 16:50:09 -05:00

12 lines
223 B
Bash
Executable File

#!/usr/bin/bash
# Install build dependencies, run unit tests and installed tests.
# This script is what Prow runs.
set -xeuo pipefail
dn=$(dirname $0)
. ${dn}/libbuild.sh
export CC=clang CXX=clang++
${dn}/build-check.sh