PIL: remove 64-bit arch on 32-bit hardware

master
Adam Vandenberg 2011-09-01 17:10:31 -07:00
parent 773723a0de
commit a0e6f0554f
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ class Pil < Formula
# We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
archs = archs_for_command("python")
archs.remove_ppc!
# Can't build universal on 32-bit hardware. See:
# https://github.com/mxcl/homebrew/issues/5844
archs.delete! :x86_64 if Hardware.is_32_bit?
ENV['ARCHFLAGS'] = archs.as_arch_flags
inreplace "setup.py" do |s|