From bc4f126b43ffd43bc169c5183603f39203b4b0d8 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Thu, 23 Jul 2015 22:20:50 +0100 Subject: [PATCH] mongodb: disable warnings as errors on >Yosemite The problem with MongoDB's compile seems to be related to Clang within Xcode 7.0 rather than El Capitain itself. Since Xcode 7.0 is available for 10.10 as well and contains the 10.10 SDK we need to cover that use case. I don't hugely advise running Xcode 7.0 on 10.10 just yet, but that's not going to stop people from doing so. Closes Homebrew/homebrew#41971. --- Formula/mongodb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/mongodb.rb b/Formula/mongodb.rb index c8eb8543c2..da8330b36b 100644 --- a/Formula/mongodb.rb +++ b/Formula/mongodb.rb @@ -83,7 +83,7 @@ class Mongodb < Formula args << "--use-system-boost" if build.with? "boost" args << "--use-new-tools" - args << "--disable-warnings-as-errors" if MacOS.version >= :el_capitan + args << "--disable-warnings-as-errors" if MacOS.version >= :yosemite if build.with? "openssl" args << "--ssl" << "--extrapath=#{Formula["openssl"].opt_prefix}"