Fix --intel switch

Also renamed --universal, but the --intel switch still works.
This commit is contained in:
Max Howell 2009-12-21 23:30:51 +00:00
parent 096c3f3bfd
commit f31f154d89

View file

@ -11,7 +11,7 @@ class Python <Formula
def options
[
["--framework", "Do a 'Framework' build instead of a UNIX-style build."],
["--intel", "Build for both 32 & 64 bit Intel."]
["--universal", "Build for both 32 & 64 bit Intel."]
]
end
@ -23,7 +23,8 @@ class Python <Formula
def install
args = ["--prefix=#{prefix}"]
args << "--enable-framework" if ARGV.include? '--framework'
args << "--with-universal-archs=intel --enable-universalsdk=/" if ARGV.include? '--intel'
args << "--with-universal-archs=intel" << "--enable-universalsdk=/" if ARGV.include? '--universal' \
or ARGV.include? '--intel' # the old flag, preserved for back-compat
# Speed up creation of libpython.a, backported from Unladen Swallow:
# http://code.google.com/p/unladen-swallow/source/detail?r=856