Skip to content

Commit e41a1bd

Browse files
authored
[CI] Enable -Werror in pre-merge CI (llvm#155627)
We have many buildbots that run with -Werror, but it's currently not enabled in pre-merge CI, so adding a warning causes a slew of post-commit failures. Note that we only guarantee warning freedom when compiling with a recent version of clang, but not when using gcc or msvc. The monolithic-linux build uses recent clang (currently 21.1.0), so it should be safe to enable the option there.
1 parent 4cf7702 commit e41a1bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.ci/monolithic-linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
6161
-D LLDB_ENABLE_PYTHON=ON \
6262
-D LLDB_ENFORCE_STRICT_TEST_REQUIREMENTS=ON \
6363
-D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
64-
-D CMAKE_EXE_LINKER_FLAGS="-no-pie"
64+
-D CMAKE_EXE_LINKER_FLAGS="-no-pie" \
65+
-D LLVM_ENABLE_WERROR=ON
6566

6667
start-group "ninja"
6768

0 commit comments

Comments
 (0)