blob: 7ee8beb46a9103eef9df9c6fc077a47942ba602d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
if [ $# != 1 ]; then
echo 'usage: 9a file.s' 1>&2
exit 1
fi
aflags=""
case "`uname`" in
Darwin)
aflags="-arch `arch`"
esac
out=`echo $1 | sed 's/\.s$//;s/$/.o/'`
exec as $aflags -o $out $1
|