diff options
| author | Mike McQuaid | 2013-11-18 17:41:00 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-11-18 17:50:30 +0000 |
| commit | 25a9f586c7042867567c8d79ad41849e140d5678 (patch) | |
| tree | b59706319c2a8621bf99687d55cb5d0ea56387dd /Library/Formula | |
| parent | 8e2ee51e772d6a21693c74a57633b63e788d8274 (diff) | |
| download | homebrew-25a9f586c7042867567c8d79ad41849e140d5678.tar.bz2 | |
phantomjs, qt: update superenv optimisations fix.
Closes #24438.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/phantomjs.rb | 9 | ||||
| -rw-r--r-- | Library/Formula/qt.rb | 11 |
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? |
