qt: enable pch build with clang.

Closes Homebrew/homebrew#15050.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Richard Petri 2012-09-22 12:09:04 +01:00 committed by Mike McQuaid
parent 7e8b27a76c
commit 657d7ff1e3

View file

@ -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