Skip to content

Commit 115ce93

Browse files
oschwaldclaude
andcommitted
Remove -std=c99 from default CI builds, add macOS 26
Our CI was using -std=c99 for all builds, which causes Darwin headers to hide BSD extension symbols. This masked the bswap32/bswap64 macro collision reported in #419, since real-world users (e.g. Homebrew) build without -std=c99 and see the conflict. Remove -std=c99 from the default CFLAGS and add it as a separate matrix entry to preserve language compliance checking. Also add macos-26 to the OS matrix since the bswap collision appears to be specific to macOS 26 (Tahoe), which is not covered by macos-latest (currently macOS 15). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a291335 commit 115ce93

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
test-autoconf:
1010
strategy:
1111
matrix:
12-
os: [ubuntu-latest, macos-latest]
12+
os: [ubuntu-latest, macos-latest, macos-26]
1313
cc: [gcc, clang]
14-
posix: ['', -D_POSIX_C_SOURCE=200112L]
14+
posix: ['', -D_POSIX_C_SOURCE=200112L, -std=c99]
1515
name: Autotools build on ${{matrix.os}} using ${{matrix.cc}} ${{matrix.posix}}
1616
runs-on: ${{ matrix.os }}
1717
env:
@@ -23,13 +23,13 @@ jobs:
2323
submodules: true
2424
persist-credentials: false
2525
- run: sudo apt install libipc-run3-perl
26-
if: ${{ matrix.os == 'ubuntu-latest' }}
26+
if: ${{ startsWith(matrix.os, 'ubuntu') }}
2727
- run: brew install autoconf automake libtool
28-
if: ${{ matrix.os == 'macos-latest' }}
28+
if: ${{ startsWith(matrix.os, 'macos') }}
2929
- run: ./bootstrap
3030
- run: ./configure
3131
env:
32-
CFLAGS: -std=c99 -Wall -Wextra -Werror -Wno-unused-function -Wno-unused-parameter ${{ matrix.posix }}
32+
CFLAGS: -Wall -Wextra -Werror -Wno-unused-function -Wno-unused-parameter ${{ matrix.posix }}
3333
- run: make
3434
- run: make check
3535

0 commit comments

Comments
 (0)