anttweakbar: fix build on 10.11 with Xcode 8.x
This commit is contained in:
parent
c4bbc094e8
commit
48243c5e20
1 changed files with 8 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue