Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions config.mak.uname
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ ifeq ($(uname_S),Darwin)
NEEDS_GOOD_LIBICONV = UnfortunatelyYes
endif

# Homebrew's LLVM clang ships a regex.h that lacks REG_ENHANCED,
# which is needed for USE_ENHANCED_BASIC_REGULAR_EXPRESSIONS above.
# Use our bundled regex instead. This became a practical problem
# when Homebrew 5.1.0 started auto-linking versioned keg-only
# formulae (like llvm@15) into $(HOMEBREW_PREFIX)/bin/, causing
# CC=clang in CI to silently pick up Homebrew's clang instead of
# Apple's /usr/bin/clang.
ifeq ($(CC),clang)
NO_REGEX = HomebrewsClangUsesARegexThatLacksREG_ENHANCED
endif

# The builtin FSMonitor on MacOS builds upon Simple-IPC. Both require
# Unix domain sockets and PThreads.
ifndef NO_PTHREADS
Expand Down
Loading