Skip to content

Commit fecdae6

Browse files
demin-hancmuellner
authored andcommitted
Fix --with-tune option
Similiar reason to --with-cmodel. Signed-off-by: demin.han <[email protected]>
1 parent 9cfb1a8 commit fecdae6

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

configure

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3999,16 +3999,23 @@ fi
39993999
# Check whether --with-tune was given.
40004000
if test ${with_tune+y}
40014001
then :
4002-
withval=$with_tune; WITH_TUNE=--with-tune=$with_tune
4002+
withval=$with_tune;
4003+
else $as_nop
4004+
with_tune=no
4005+
4006+
fi
4007+
4008+
4009+
if test "x$with_tune" != xno
4010+
then :
4011+
WITH_TUNE=--with-tune=$with_tune
40034012
40044013
else $as_nop
40054014
WITH_TUNE=""
40064015
4007-
40084016
fi
40094017
40104018
4011-
40124019
# Check whether --with-isa-spec was given.
40134020
if test ${with_isa_spec+y}
40144021
then :

configure.ac

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,14 @@ AC_ARG_WITH(abi,
8181
AC_ARG_WITH(tune,
8282
[AS_HELP_STRING([--with-tune=generic],
8383
[Set the base RISC-V CPU, defaults to GCC's default])],
84-
[AC_SUBST(WITH_TUNE,--with-tune=$with_tune)],
85-
[AC_SUBST(WITH_TUNE,"")]
84+
[],
85+
[with_tune=no]
8686
)
8787

88+
AS_IF([test "x$with_tune" != xno],
89+
[AC_SUBST(WITH_TUNE,--with-tune=$with_tune)],
90+
[AC_SUBST(WITH_TUNE,"")])
91+
8892
AC_ARG_WITH(isa-spec,
8993
[AS_HELP_STRING([--with-isa-spec=20191213],
9094
[Set the default ISA spec version, default to 20191213, available options: 2.2, 20190608, 20191213])],

0 commit comments

Comments
 (0)