aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-03-07 22:42:28 -0500
committerMike McQuaid2012-03-10 18:11:12 +1300
commit6d940a5bccf5f13050b2d20c5f498bce7b1794c6 (patch)
treeaa8709630f72ccc6cc55d9ddfb576c0353131a22 /Library
parent552dcdc7035d7114d47751d93630e37ae6d5bf24 (diff)
downloadbrew-6d940a5bccf5f13050b2d20c5f498bce7b1794c6.tar.bz2
Always build bottles universally.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb2
-rw-r--r--Library/Homebrew/extend/ENV.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 25d19e2e7..4557825c9 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -85,7 +85,7 @@ module HomebrewArgvExtension
end
def build_universal?
- include? '--universal'
+ include? '--universal' or build_bottle?
end
# Request a 32-bit only build.
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 4db3cd504..c239966de 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -377,7 +377,9 @@ Please take one of the following actions:
append flags, xarch unless xarch.empty?
if ARGV.build_bottle?
+ ohai "Building a universal bottle."
append flags, '-mtune=' + map.fetch(:bottle) if map.has_key? :bottle
+ universal_binary
else
# Don't set -msse3 and older flags because -march does that for us
append flags, '-march=' + map.fetch(Hardware.intel_family, default)