Created
May 16, 2025 04:52
-
-
Save skull-squadron/a148f2f8993f6bf8e1644b8ad7fa9ad3 to your computer and use it in GitHub Desktop.
Homebrew fix for macOS 15.4+ / clang 17+ zlib _stdio.h:314:7: error: expected identifier or '('
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NodeAT18 < Formula | |
# ... | |
def install | |
# Workaround clang 17+ breaking bug | |
if OS.mac? && DevelopmentTools.clang_build_version >= 1700 | |
ENV.append_to_cflags "-fno-define-target-os-macros" | |
end | |
# ... | |
end | |
# ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment