erlang@21: fix for Xcode 11

This commit is contained in:
FX Coudert 2019-10-13 21:22:57 +02:00
parent ed684894ca
commit 05ad0c89bb

View file

@ -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}") }