Skip to content

Commit ae6513f

Browse files
committed
Fix macOS CI: use system cc instead of Homebrew gcc
Homebrew's gcc uses a different sysroot that lacks macOS-specific symbols like reallocarray. Force CC=cc to use Apple's clang which has the correct macOS SDK headers and library search paths.
1 parent 7ea69ea commit ae6513f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-and-fuzz.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
BREW_PKG="${BREW_PKG:+${BREW_PKG}:}${prefix}/lib/pkgconfig"
115115
done
116116
./configure --disable-dependency-tracking \
117+
CC=cc \
117118
CPPFLAGS="${BREW_CFLAGS}" \
118119
LDFLAGS="${BREW_LDFLAGS}" \
119120
PKG_CONFIG_PATH="${BREW_PKG}"

0 commit comments

Comments
 (0)