aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMisty De Meo2013-08-25 14:29:55 -0700
committerMisty De Meo2013-08-25 14:51:48 -0700
commitf0bf64e1e90b2913bc458dd453babbec916d7e61 (patch)
tree258f1a6586f76a07c53e935842bf942871fb03ac /Library/Homebrew
parent3703d60e573a152eea183c5ca030edd86167ad6f (diff)
downloadbrew-f0bf64e1e90b2913bc458dd453babbec916d7e61.tar.bz2
superenv: support PPC bottles
Allows for building bottles on PPC both with and without Altivec. This is currently not active but will be enabled once superenv is stable on Leopard.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 9f4b293b3..13111657b 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -85,6 +85,8 @@ module Superenv
# b - Installing from a bottle
# i - Installing from a bottle on Intel
# 6 - Installing from a bottle on 64-bit Intel
+ # p - Installing from a bottle on PPC
+ # A - Installing from a bottle on PPC with Altivec
# O - Enables argument refurbishing. Only active under the
# make/bsdmake wrappers currently.
#
@@ -241,6 +243,12 @@ module Superenv
else
'bi'
end
+ elsif Hardware::CPU.type == :ppc
+ if Hardware::CPU.altivec?
+ 'bpA'
+ else
+ 'bp'
+ end
else
'b'
end