folly 2017.03.06.00
Closes #10707. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
bf9251baca
commit
b2458e147d
1 changed files with 5 additions and 19 deletions
|
@ -1,9 +1,8 @@
|
|||
class Folly < Formula
|
||||
desc "Collection of reusable C++ library artifacts developed at Facebook"
|
||||
homepage "https://github.com/facebook/folly"
|
||||
url "https://github.com/facebook/folly/archive/v2016.12.19.00.tar.gz"
|
||||
sha256 "471050ccd2a32f551eb11f43170d3f9cdd39d363ec026ca922b872d1c03831c1"
|
||||
revision 3
|
||||
url "https://github.com/facebook/folly/archive/v2017.03.06.00.tar.gz"
|
||||
sha256 "e48507f08cb3ec071d756c2a3c49177a99566566375ab7fb0f351fcb8690ada1"
|
||||
head "https://github.com/facebook/folly.git"
|
||||
|
||||
bottle do
|
||||
|
@ -39,26 +38,13 @@ class Folly < Formula
|
|||
ENV.cxx11
|
||||
|
||||
cd "folly" do
|
||||
# Fix "typedef redefinition with different types ('uint8_t' (aka 'unsigned
|
||||
# char') vs 'enum clockid_t')"
|
||||
# Reported 9 Mar 2017 https://github.com/facebook/folly/issues/557
|
||||
if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
|
||||
# Workaround for "no matching function for call to 'clock_gettime'"
|
||||
# See upstream PR from 2 Oct 2016 facebook/folly#488
|
||||
inreplace ["Benchmark.cpp", "Benchmark.h"] do |s|
|
||||
s.gsub! "clock_gettime(CLOCK_REALTIME",
|
||||
"clock_gettime((clockid_t)CLOCK_REALTIME"
|
||||
s.gsub! "clock_getres(CLOCK_REALTIME",
|
||||
"clock_getres((clockid_t)CLOCK_REALTIME", false
|
||||
end
|
||||
|
||||
# Fix "candidate function not viable: no known conversion from
|
||||
# 'folly::detail::Clock' to 'clockid_t' for 1st argument"
|
||||
# See upstream PR mentioned above
|
||||
inreplace "portability/Time.h", "typedef uint8_t clockid_t;", ""
|
||||
end
|
||||
|
||||
# Fixes the .pc file, which references the gflags .pc under the wrong name.
|
||||
# Applied upstream: https://github.com/facebook/folly/pull/531
|
||||
inreplace "configure.ac", "[libgflags]", "[gflags]"
|
||||
|
||||
system "autoreconf", "-fvi"
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-silent-rules",
|
||||
"--disable-dependency-tracking"
|
||||
|
|
Loading…
Reference in a new issue