trafficserver: fails with clang 800 for head build (#28659)

--HEAD needs C++17
This commit is contained in:
ilovezfs 2018-06-04 22:47:50 -07:00 committed by GitHub
parent 9237147efe
commit efa8f4bcd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,14 @@
class Trafficserver < Formula
desc "HTTP/1.1 compliant caching proxy server"
homepage "https://trafficserver.apache.org/"
stable do
url "https://www.apache.org/dyn/closer.cgi?path=trafficserver/trafficserver-7.1.3.tar.bz2"
sha256 "41c7e02ab55cb478222ef2259e918b89e5d1ef9778d7fa1d0ec492b26944d420"
needs :cxx11
end
bottle do
sha256 "34d24867b84b672d3ba4c07066c15b2db0ee3fab29469e916f54728c808f4200" => :high_sierra
sha256 "d871b084da0193a97c97ea9e5dd9b81be73ed7719f0185c797044d98951c558f" => :sierra
@ -16,6 +21,11 @@ class Trafficserver < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
fails_with :clang do
build 800
cause "needs C++17"
end
end
option "with-experimental-plugins", "Enable experimental plugins"
@ -23,10 +33,8 @@ class Trafficserver < Formula
depends_on "openssl"
depends_on "pcre"
needs :cxx11
def install
ENV.cxx11
ENV.cxx11 if build.stable?
# Needed for OpenSSL headers
if MacOS.version <= :lion