From e6af2d3662b2d45c357b30f5e926f4cf12517863 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 12 Jul 2022 14:16:23 +0100 Subject: [PATCH] ci: Specify -Wno-overlength-strings on macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This disables the following warning, which was causing CI failures on macOS when building the libpcre2 subproject: ``` ../subprojects/pcre2-10.40/src/pcre2_error.c:66:3: error: string literal of length 4380 exceeds maximum length 4095 that ISO C99 compilers are required to support [-Werror,-Woverlength-strings] ``` We don’t want to explicitly rely on using overlength strings in GLib, which is why this change is a `CFLAGS` in the CI configuration, rather than setting a project-level argument in `meson.build`. Signed-off-by: Philip Withnall --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aeeabc36e..da11515bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -437,6 +437,10 @@ macos: needs: [] variables: GIT_SUBMODULE_STRATEGY: normal + # libpcre2 gets built as a subproject, but the default Clang options on + # macOS limit string lengths to 4095B — pcre2_error.c has a string of length + # 4380B + CFLAGS: '-Wno-overlength-strings' before_script: - bash .gitlab-ci/show-execution-environment.sh - pip3 install --user meson==0.60.1