ci: make linker warnings fatal

... excluding the warning for emitting a LOAD segment with RWX
permissions for libglapi, an issue which has persisted for some time.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33137>
This commit is contained in:
Eric Engestrom 2023-01-21 12:47:10 +00:00 committed by Marge Bot
parent 4c3d2af001
commit 439408229b
2 changed files with 6 additions and 2 deletions

View file

@ -840,6 +840,10 @@ debian-x86_32:
EXTRA_OPTION: >
-D vulkan-layers=device-select,overlay
-D mesa-clc=system
C_LINK_ARGS: >
-Wl,--no-warn-rwx-segments
CPP_LINK_ARGS: >
-Wl,--no-warn-rwx-segments
HOST_BUILD_OPTIONS: >
-D build-tests=false
-D enable-glcpp-tests=false

View file

@ -172,9 +172,9 @@ meson setup _build \
-D buildtype=${BUILDTYPE:?} \
-D build-tests=${RUN_MESON_TESTS} \
-D c_args="$(echo -n $C_ARGS)" \
-D c_link_args="$(echo -n $C_LINK_ARGS)" \
-D c_link_args="$(echo -n $C_LINK_ARGS) -Wl,--fatal-warnings" \
-D cpp_args="$(echo -n $CPP_ARGS)" \
-D cpp_link_args="$(echo -n $CPP_LINK_ARGS)" \
-D cpp_link_args="$(echo -n $CPP_LINK_ARGS) -Wl,--fatal-warnings" \
-D enable-glcpp-tests=false \
-D libunwind=${UNWIND} \
${DRI_LOADERS} \