erlang@21: fix for Xcode 11
This commit is contained in:
parent
ed684894ca
commit
05ad0c89bb
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ class ErlangAT21 < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
# Work around Xcode 11 clang bug
|
||||||
|
# https://bitbucket.org/multicoreware/x265/issues/514/wrong-code-generated-on-macos-1015
|
||||||
|
ENV.append_to_cflags "-fno-stack-check" if DevelopmentTools.clang_build_version >= 1010
|
||||||
|
|
||||||
# Unset these so that building wx, kernel, compiler and
|
# Unset these so that building wx, kernel, compiler and
|
||||||
# other modules doesn't fail with an unintelligable error.
|
# other modules doesn't fail with an unintelligable error.
|
||||||
%w[LIBS FLAGS AFLAGS ZFLAGS].each { |k| ENV.delete("ERL_#{k}") }
|
%w[LIBS FLAGS AFLAGS ZFLAGS].each { |k| ENV.delete("ERL_#{k}") }
|
||||||
|
|
Loading…
Reference in a new issue