summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Sindholt <opensource@zhasha.com>2015-08-30 17:06:39 +0200
committerJoakim Sindholt <opensource@zhasha.com>2015-08-30 17:06:39 +0200
commit0e2dd0b02d0b4a057bfd99ef33631303494da934 (patch)
treed6d3426a3bd5e3f43738947c0be9a7b97169d52f
parent668c6b8e4c12162c6bc591c6f9e23f281d7ddd74 (diff)
small assembler wrapper cleanups
-rw-r--r--bin/p9a.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/p9a.sh b/bin/p9a.sh
index 68e3d16..d0f5651 100644
--- a/bin/p9a.sh
+++ b/bin/p9a.sh
@@ -19,8 +19,7 @@ do
exit 1
fi
- OPTS+=("-o")
- OPTS+=("$OPTARG")
+ OPTS+=("-o" "$OPTARG")
USE_RENAME=false
;;
D)
@@ -42,8 +41,7 @@ done
case "$objtype" in
amd64 | 386)
# intel asm syntax for intel processors
- OPTS+=("-mllvm")
- OPTS+=("--x86-asm-syntax=intel")
+ OPTS+=("-mllvm" "--x86-asm-syntax=intel")
;;
esac
@@ -70,7 +68,7 @@ fi
for f in ${FILES[@]}
do
- declare -a RNOPTS
+ RNOPTS=()
if [ $USE_RENAME == true ]
then
# check that we only got .s files
@@ -82,8 +80,7 @@ do
fi
obj=$(echo "${f}" | sed -e"s/\.s$/\.$O/")
- RNOPTS+=("-o")
- RNOPTS+=("${obj}")
+ RNOPTS=("-o" "${obj}")
fi
clang -integrated-as --target="${CLANGARCH}" -g ${RNOPTS[@]} ${OPTS[@]} \