We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 473d978 commit ad87ebaCopy full SHA for ad87eba
e9compile.sh
@@ -51,11 +51,12 @@ case "$1" in
51
;;
52
*)
53
echo >&2
54
- echo "${RED}error${OFF}: file $1 must have a .c/.cpp/.s extension" >&2
+ echo "${RED}error${OFF}: file ${1@Q} must have a .c/.cpp/.s extension" >&2
55
56
exit 1
57
58
esac
59
+SOURCE="$1"
60
BASENAME="$(basename "$1" .$EXTENSION)"
61
DIRNAME="$(dirname "$1")"
62
@@ -68,7 +69,7 @@ CFLAGS=(
68
69
-mstringop-strategy=loop -fno-tree-vectorize -fomit-frame-pointer
70
-I examples/
71
)
-COMPILE=("$CC" "${CFLAGS[@]}" -c -Wall "$@" "$DIRNAME/$BASENAME.$EXTENSION")
72
+COMPILE=("$CC" "${CFLAGS[@]}" -c -Wall "$@" "$SOURCE")
73
74
echo "${COMPILE[@]}"
75
if ! "${COMPILE[@]}"
0 commit comments