From: Mosè Giordano Date: Wed, 24 Aug 2022 19:39:03 +0000 (+0100) Subject: Actually run `configure` CI on macOS with GCC X-Git-Tag: 2.1.0-beta1~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28d1e534308bb3c3bccf61581229429f39e8d315;p=thirdparty%2Fzlib-ng.git Actually run `configure` CI on macOS with GCC `gcc` is an alias for Apple Clang on macOS. See for example https://github.com/zlib-ng/zlib-ng/runs/7963904948?check_suite_focus=true ``` gcc -O2 -std=c11 -Wall -fPIC -DNDEBUG -DHAVE_POSIX_MEMALIGN -DWITH_GZFILEOP -fno-semantic-interposition -DHAVE_VISIBILITY_HIDDEN -DHAVE_VISIBILITY_INTERNAL -DHAVE_BUILTIN_CTZ -DHAVE_BUILTIN_CTZLL -DX86_FEATURES -DX86_AVX2 -DX86_AVX2_ADLER32 -DX86_AVX_CHUNKSET -DX86_AVX512 -DX86_AVX512_ADLER32 -DX86_MASK_INTRIN -DX86_AVX512VNNI -DX86_AVX512VNNI_ADLER32 -DX86_SSE41 -DX86_SSE42_CRC_HASH -DX86_SSE42_ADLER32 -DX86_SSE42_CRC_INTRIN -DX86_SSE2 -DX86_SSE2_CHUNKSET -DX86_SSSE3 -DX86_SSSE3_ADLER32 -DX86_PCLMULQDQ_CRC -DPIC -I/Users/runner/work/zlib-ng/zlib-ng -c -o adler32.lo /Users/runner/work/zlib-ng/zlib-ng/adler32.c clang: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument] ``` In order to use the real GCC you have to call `gcc-9`, `gcc-10`, or `gcc-11`: https://github.com/actions/runner-images/blob/06dd4c14e4aa8c14febdd8d6cf123b8d770b4e4a/images/macos/macos-11-Readme.md#language-and-runtime. --- diff --git a/.github/workflows/configure.yml b/.github/workflows/configure.yml index 975af222b..4c0d395d7 100644 --- a/.github/workflows/configure.yml +++ b/.github/workflows/configure.yml @@ -178,17 +178,17 @@ jobs: - name: macOS GCC Symbol Prefix os: macOS-latest - compiler: gcc + compiler: gcc-9 configure-args: --sprefix=zTest_ - name: macOS GCC Symbol Prefix & Compat os: macOS-latest - compiler: gcc + compiler: gcc-9 configure-args: --zlib-compat --sprefix=zTest_ - name: macOS GCC os: macOS-latest - compiler: gcc + compiler: gcc-9 configure-args: --warn steps: