Skip to content

Commit

Permalink
zsh: fix for Xcode 12
Browse files Browse the repository at this point in the history
Closes #64923.

Signed-off-by: Issy Long <me@issyl0.co.uk>
Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
fxcoudert committed Nov 16, 2020
1 parent 034355e commit cac377b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Formula/zsh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Zsh < Formula
url "https://downloads.sourceforge.net/project/zsh/zsh/5.8/zsh-5.8.tar.xz"
mirror "https://www.zsh.org/pub/zsh-5.8.tar.xz"
sha256 "dcc4b54cc5565670a65581760261c163d720991f0d06486da61f8d839b52de27"
revision 1

livecheck do
url :stable
Expand Down Expand Up @@ -31,6 +32,11 @@ class Zsh < Formula
end

def install
# Work around configure issues with Xcode 12
# https://www.zsh.org/mla/workers/2020/index.html
# https://github.com/Homebrew/homebrew-core/issues/64921
ENV.append "CFLAGS", "-Wno-implicit-function-declaration"

system "Util/preconfig" if build.head?

system "./configure", "--prefix=#{prefix}",
Expand Down

0 comments on commit cac377b

Please sign in to comment.