arangodb: note reduced performance with clang.

Closes Homebrew/homebrew#49065.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
ArangoDB Release BOT 2016-02-10 10:24:56 +01:00 committed by Mike McQuaid
parent 2acd918f17
commit 4051370cab

View file

@ -39,6 +39,10 @@ class Arangodb < Formula
args << "--program-suffix=-unstable" if build.head?
if ENV.compiler != :clang
ENV.append "LDFLAGS", "-static-libgcc -static-libstdc++"
end
system "./configure", *args
system "make", "install"
end
@ -50,6 +54,13 @@ class Arangodb < Formula
system "#{sbin}/arangod" + (build.head? ? "-unstable" : ""), "--upgrade", "--log.file", "-"
end
def caveats; <<-EOS.undent
Please note that clang and/or its standard library 7.0.0 has a severe
performance issue. Please consider using '--cc=gcc-5' when installing
if you are running on such a system.
EOS
end
plist_options :manual => "#{HOMEBREW_PREFIX}/opt/arangodb/sbin/arangod" + (build.head? ? "-unstable" : "") + " --log.file -"
def plist; <<-EOS.undent