Skip to content

Commit bdf1d1b

Browse files
committed
Treat warnings as errors in out of tree CI builds
Ensure build warnings are not left unnoticed in CI builds. Only do this for out of tree builds, such that any warnings from compiling LLVM sources are not breaking the build unnecessarily.
1 parent f80a4ec commit bdf1d1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/check-out-of-tree-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
mkdir build && cd build
6565
cmake ${{ github.workspace }} \
6666
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
67+
-DCMAKE_CXX_FLAGS="-Werror" \
6768
-DLLVM_INCLUDE_TESTS=ON \
6869
-DLLVM_EXTERNAL_LIT="/usr/lib/llvm-${{ env.LLVM_VERSION }}/build/utils/lit/lit.py" \
6970
-G "Unix Makefiles"

0 commit comments

Comments
 (0)