Skip to content

Commit 1d57346

Browse files
committed
selftests/nolibc: error out on linker warnings
If the linker emits warnings these should abort the build. Otherwise they will be swallowed by run-tests.sh and not shown. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu>
1 parent 682bf67 commit 1d57346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/nolibc/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test_arch() {
169169
cross_compile=$(realpath "${download_location}gcc-${crosstool_version}-nolibc/${ct_arch}-${ct_abi}/bin/${ct_arch}-${ct_abi}-")
170170
build_dir="${build_location}/${arch}"
171171
if [ "$werror" -ne 0 ]; then
172-
CFLAGS_EXTRA="$CFLAGS_EXTRA -Werror"
172+
CFLAGS_EXTRA="$CFLAGS_EXTRA -Werror -Wl,--fatal-warnings"
173173
fi
174174
MAKE=(make -f Makefile.nolibc -j"${nproc}" XARCH="${arch}" CROSS_COMPILE="${cross_compile}" LLVM="${llvm}" O="${build_dir}")
175175

0 commit comments

Comments
 (0)