c_check: fix syntax
This commit is contained in:
parent
a7b248631b
commit
9c098b02a2
8
c_check
8
c_check
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue