diff options
author | Mosè Giordano <giordano@users.noreply.github.com> | 2022-08-24 20:39:03 +0100 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2023-03-17 21:27:56 +0100 |
commit | 8ebb35ac232c9fb35eeaa08f67612398e54ce83a (patch) | |
tree | 588f98b80cc61b4b352d52db10470e64c464740b | |
parent | aa4bbe8a51beb00e3bbca380969daf5ce855289d (diff) |
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.
-rw-r--r-- | .github/workflows/configure.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/configure.yml b/.github/workflows/configure.yml index d85d966..b827c6a 100644 --- a/.github/workflows/configure.yml +++ b/.github/workflows/configure.yml @@ -160,7 +160,7 @@ jobs: - name: macOS GCC os: macOS-latest - compiler: gcc + compiler: gcc-9 configure-args: --warn steps: |