Skip to content

Commit c13be0b

Browse files
committed
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.
1 parent da2c627 commit c13be0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui-macos/bits/runpython.do

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
exec >&2
22
redo-ifchange runpython.c
3-
gcc -arch ppc -arch i386 -arch x86_64 \
3+
ARCHES=""
4+
for d in /usr/libexec/gcc/darwin/*; do
5+
ARCHES="$ARCHES -arch $(basename $d)"
6+
done
7+
gcc $ARCHES \
48
-Wall -o $3 runpython.c \
59
-I/usr/include/python2.5 \
610
-lpython2.5

0 commit comments

Comments
 (0)