aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2013-11-18 17:41:00 +0000
committerMike McQuaid2013-11-18 17:50:30 +0000
commit25a9f586c7042867567c8d79ad41849e140d5678 (patch)
treeb59706319c2a8621bf99687d55cb5d0ea56387dd /Library/Formula
parent8e2ee51e772d6a21693c74a57633b63e788d8274 (diff)
downloadhomebrew-25a9f586c7042867567c8d79ad41849e140d5678.tar.bz2
phantomjs, qt: update superenv optimisations fix.
Closes #24438.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/phantomjs.rb9
-rw-r--r--Library/Formula/qt.rb11
2 files changed, 5 insertions, 15 deletions
diff --git a/Library/Formula/phantomjs.rb b/Library/Formula/phantomjs.rb
index 475a08295..9ec9c9113 100644
--- a/Library/Formula/phantomjs.rb
+++ b/Library/Formula/phantomjs.rb
@@ -20,12 +20,9 @@ class Phantomjs < Formula
def install
inreplace 'src/qt/preconfig.sh', '-arch x86', '-arch x86_64' if MacOS.prefer_64_bit?
args = ['--confirm', '--qt-config']
- # Fix Clang/LLVM 3DNow! intrinsic failure.
- if MacOS.version >= :lion
- args << '-no-3dnow'
- else
- args << '-no-3dnow -no-ssse3'
- end
+ # we have to disable these to avoid triggering Qt optimization code
+ # that will fail in superenv (in --env=std, Qt seems aware of this)
+ args << '-no-3dnow -no-ssse3' if superenv?
system './build.sh', *args
bin.install 'bin/phantomjs'
(share+'phantomjs').install 'examples'
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb
index d6615c176..7a537c6c4 100644
--- a/Library/Formula/qt.rb
+++ b/Library/Formula/qt.rb
@@ -83,15 +83,8 @@ class Qt < Formula
"-cocoa", "-fast", "-release"]
# we have to disable these to avoid triggering optimization code
- # that will fail in superenv, perhaps because we rename clang to cc and
- # Qt thinks it can build with special assembler commands.
- # In --env=std, Qt seems aware of this.
- # But we want superenv, because it allows to build Qt in non-standard
- # locations and with Xcode-only.
- if superenv?
- args << '-no-3dnow'
- args << '-no-ssse3'
- end
+ # that will fail in superenv (in --env=std, Qt seems aware of this)
+ args << '-no-3dnow' << '-no-ssse3' if superenv?
args << "-L#{MacOS::X11.lib}" << "-I#{MacOS::X11.include}" if MacOS::X11.installed?