From c13be0b817ae39df268f24350a7b26b15fe388ac Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Tue, 3 May 2011 14:18:37 -0700 Subject: [PATCH] ui-macos/bits/runpython.do: auto-determine arches to build for. Some people don't have all of them installed, so auto-detect them by looking at the available arches in /usr/libexec. --- ui-macos/bits/runpython.do | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui-macos/bits/runpython.do b/ui-macos/bits/runpython.do index 3db6bee..ced2b65 100644 --- a/ui-macos/bits/runpython.do +++ b/ui-macos/bits/runpython.do @@ -1,6 +1,10 @@ exec >&2 redo-ifchange runpython.c -gcc -arch ppc -arch i386 -arch x86_64 \ +ARCHES="" +for d in /usr/libexec/gcc/darwin/*; do + ARCHES="$ARCHES -arch $(basename $d)" +done +gcc $ARCHES \ -Wall -o $3 runpython.c \ -I/usr/include/python2.5 \ -lpython2.5