ci: Move the build cflags to a meson native file

Similar to what we use for the werror

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5543>
This commit is contained in:
Jordan Petridis 2023-11-09 14:51:50 +02:00 committed by GStreamer Marge Bot
parent 58119a3dea
commit 5685db7358
3 changed files with 4 additions and 8 deletions

View file

@ -40,13 +40,6 @@ 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"
_CI_CFLAGS: >-
-Wno-error=deprecated-declarations
-ggdb
-fasynchronous-unwind-tables
-fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer
DEFAULT_MESON_ARGS: >-
-Dlibnice:tests=disabled
-Dlibnice:examples=disabled

View file

@ -0,0 +1,3 @@
[built-in options]
c_args = [ '-Wno-error=deprecated-declarations', '-ggdb', '-fno-omit-frame-pointer', '-mno-omit-leaf-frame-pointer', '-fasynchronous-unwind-tables']
cpp_args = c_args

View file

@ -28,7 +28,7 @@ if [ "$GST_WERROR" = "true" ]; then
fi
date -R
meson setup build/ -Dc_args="${_CI_CFLAGS}" -Dcpp_args="${_CI_CFLAGS}" ${ARGS}
meson setup build/ --native-file ./ci/meson/gst-ci-cflags.ini ${ARGS}
date -R
meson compile -C build/
date -R