c_check: fix syntax

This commit is contained in:
Owen Rafferty 2022-05-12 11:59:13 -05:00
parent a7b248631b
commit 9c098b02a2
No known key found for this signature in database
GPG Key ID: A68B10E2554DEBCB
1 changed files with 4 additions and 4 deletions

View File

@ -222,13 +222,13 @@ if [ "$architecture" = "x86" ] || [ "$architecture" = "x86_64" ]; then
rm -rf "$tmpd" rm -rf "$tmpd"
fi fi
no_rv64gv= 0; no_rv64gv=0
if [ "$architecture" = "riscv64" ]; then if [ "$architecture" = "riscv64" ]; then
tmpd=`mktemp -d` tmpd=`mktemp -d`
tmpf="$tmpd/a.c tmpf="$tmpd/a.c"
code = '"vsetvli zero, zero, e8, m1\n"' code='"vsetvli zero, zero, e8, m1\n"'
printf "int main(void){ __asm__ volatile(%s); }\n" "$code" >> "$tmpf" printf "int main(void){ __asm__ volatile(%s); }\n" "$code" >> "$tmpf"
args = " -march=rv64gv -c -o $tmpf.o $tmpf" args=" -march=rv64gv -c -o $tmpf.o $tmpf"
no_rv64gv=0 no_rv64gv=0
{ {
$compiler_name $flags $args >/dev/null 2>&1 $compiler_name $flags $args >/dev/null 2>&1