anttweakbar: fix build on 10.11 with Xcode 8.x

This commit is contained in:
ilovezfs 2017-10-03 22:18:32 -07:00
parent c4bbc094e8
commit 48243c5e20

View file

@ -23,8 +23,14 @@ class Anttweakbar < Formula
end
def install
# Work around Xcode 9 error "no member named 'signbit' in the global namespace"
ENV.delete("SDKROOT") if DevelopmentTools.clang_build_version >= 900
# Work around Xcode 9 error "no member named 'signbit' in the global
# namespace" and Xcode 8 issue on El Capitan "error: missing ',' between
# enumerators"
if DevelopmentTools.clang_build_version >= 900 ||
(MacOS.version == :el_capitan && MacOS::Xcode.installed? &&
MacOS::Xcode.version >= "8.0")
ENV.delete("SDKROOT")
end
system "make", "-C", "src", "-f", "Makefile.osx"
lib.install "lib/libAntTweakBar.dylib", "lib/libAntTweakBar.a"