| @@ -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 | |||||
| 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" | 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 | ||||