aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorRichard Petri2012-09-22 12:09:04 +0100
committerMike McQuaid2012-09-22 12:09:13 +0100
commit523a7a6fce7e934a55069c7cec8e2ba3e0e5f4c2 (patch)
treeaa331814d174148d3a7720f0396c2a2b9fc449d1 /Library
parentc5dbcdb116033c0740d92dc4d0774d3eaa8ae1ea (diff)
downloadhomebrew-523a7a6fce7e934a55069c7cec8e2ba3e0e5f4c2.tar.bz2
qt: enable pch build with clang.
Closes #15050. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qt.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb
index cdbaf7a03..8ccc0522d 100644
--- a/Library/Formula/qt.rb
+++ b/Library/Formula/qt.rb
@@ -38,10 +38,12 @@ class Qt < Formula
def install
ENV.append "CXXFLAGS", "-fvisibility=hidden"
args = ["-prefix", prefix,
- "-system-zlib", "-no-pch",
+ "-system-zlib",
"-confirm-license", "-opensource",
"-cocoa", "-fast" ]
+ args << "-platform" << "unsupported/macx-clang" if ENV.compiler == :clang
+
# See: https://github.com/mxcl/homebrew/issues/issue/744
args << "-system-sqlite" if MacOS.version == :leopard