parent
af6b864ef6
commit
eb7a0b47fd
|
@ -8,18 +8,16 @@ class Py2cairo < Formula
|
||||||
depends_on 'cairo'
|
depends_on 'cairo'
|
||||||
depends_on :x11
|
depends_on :x11
|
||||||
|
|
||||||
|
option :universal
|
||||||
|
|
||||||
fails_with :llvm do
|
fails_with :llvm do
|
||||||
build 2336
|
build 2336
|
||||||
cause "The build script will set -march=native which llvm can't accept"
|
cause "The build script will set -march=native which llvm can't accept"
|
||||||
end
|
end
|
||||||
|
|
||||||
def options
|
|
||||||
[['--universal', 'Build universal binaries']]
|
|
||||||
end
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Python extensions default to universal but cairo may not be universal
|
# Python extensions default to universal but cairo may not be universal
|
||||||
unless ARGV.build_universal?
|
unless build.universal?
|
||||||
ENV['ARCHFLAGS'] = if MacOS.prefer_64_bit?
|
ENV['ARCHFLAGS'] = if MacOS.prefer_64_bit?
|
||||||
"-arch x86_64"
|
"-arch x86_64"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue