Skip to content

Commit 09e0c7e

Browse files
committed
e9compile: fix vars
1 parent 473d978 commit 09e0c7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e9compile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ case "$1" in
5151
;;
5252
*)
5353
echo >&2
54-
echo "${RED}error${OFF}: file $1 must have a .c/.cpp/.s extension" >&2
54+
echo "${RED}error${OFF}: file ${1@Q} must have a .c/.cpp/.s extension" >&2
5555
echo >&2
5656
exit 1
5757
;;
@@ -68,7 +68,7 @@ CFLAGS=(
6868
-mstringop-strategy=loop -fno-tree-vectorize -fomit-frame-pointer
6969
-I examples/
7070
)
71-
COMPILE=("$CC" "${CFLAGS[@]}" -c -Wall "$@" "$DIRNAME/$BASENAME.$EXTENSION")
71+
COMPILE=("$CC" "${CFLAGS[@]}" -c -Wall "$@" "$1")
7272

7373
echo "${COMPILE[@]}"
7474
if ! "${COMPILE[@]}"

0 commit comments

Comments
 (0)