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"
fi
no_rv64gv= 0;
no_rv64gv=0
if [ "$architecture" = "riscv64" ]; then
tmpd=`mktemp -d`
tmpf="$tmpd/a.c
code = '"vsetvli zero, zero, e8, m1\n"'
tmpf="$tmpd/a.c"
code='"vsetvli zero, zero, e8, m1\n"'
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
{
$compiler_name $flags $args >/dev/null 2>&1