From 2dae4617c40a3648197bba2c6a5c3f2ea6185dbd Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 24 Oct 2023 06:36:00 +0300 Subject: [PATCH] ci: Always build with frame pointers This should help with getting better stacktraces out of the build. The container image isn't yet built with frame-pointers, but once we update to fedora 38 that will be resolved and improve things further as well. Part-of: --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5eb699c16f..66507c8167 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,9 +40,10 @@ variables: WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH" WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH" - _BUILD_IGNORE_DEPRECATIONS: > - -Dc_args="-Wno-error=deprecated-declarations" - -Dcpp_args="-Wno-error=deprecated-declarations" + _CI_CFLAGS: >- + -Wno-error=deprecated-declarations + -fno-omit-frame-pointer + -mno-omit-leaf-frame-pointer DEFAULT_MESON_ARGS: >- -Dlibnice:tests=disabled @@ -282,7 +283,7 @@ commitlint: fi - echo $ARGS - date -R - - meson setup build/ ${_BUILD_IGNORE_DEPRECATIONS} $(echo ${ARGS}) + - meson setup build/ -Dc_args="${_CI_CFLAGS}" -Dcpp_args="${_CI_CFLAGS}" $(echo ${ARGS}) - date -R - ninja -C build/ - date -R