Skip to content

Commit 570e783

Browse files
Phantom1003SuHo-llrr
authored andcommitted
build: fix broken configure
The configure generated by Ubuntu22's upstream autoconf (2.71) is broken. DEFAULT_VARCH was expanded incorrectly, causing the generated line to be truncated from the comma. Since this macro is a constant and doesn't depend on environment variables, it doesn't require shell expansion.
1 parent e8d1f8d commit 570e783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/riscv.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ AC_ARG_WITH(varch,
2424
[AS_HELP_STRING([--with-varch=vlen:128,elen:64],
2525
[Sets the default vector config])],
2626
AC_DEFINE_UNQUOTED([DEFAULT_VARCH], "$withval", [Default value for --varch switch]),
27-
AC_DEFINE_UNQUOTED([DEFAULT_VARCH], ["vlen:128,elen:64"], [Default value for --varch switch]))
27+
AC_DEFINE([DEFAULT_VARCH], ["vlen:128,elen:64"], [Default value for --varch switch]))
2828

2929
AC_ARG_WITH(target,
3030
[AS_HELP_STRING([--with-target=riscv64-unknown-elf],

0 commit comments

Comments
 (0)