aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2022-04-11 23:02:59 +0800
committerKito Cheng <kito.cheng@sifive.com>2022-04-11 23:07:36 +0800
commit44fedc5e1a8f202248fc0f2b39c84226d8f3d1e6 (patch)
treece1070502841bb53cd8f6712fdd785fece1fb9c7 /configure.ac
parentcc1075c916491ac5bd6cae419f6ca371a268b10d (diff)
downloadriscv-gnu-toolchain-44fedc5e1a8f202248fc0f2b39c84226d8f3d1e6.zip
riscv-gnu-toolchain-44fedc5e1a8f202248fc0f2b39c84226d8f3d1e6.tar.gz
riscv-gnu-toolchain-44fedc5e1a8f202248fc0f2b39c84226d8f3d1e6.tar.bz2
Add --with-isa-spec option to configure
Set the default version to 2.2 for now, and once we bump to GCC 12 we will bump that to 20191213.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c977f5c..bf8226b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,13 @@ AC_ARG_WITH(tune,
[with_tune=rocket]
)
+AC_ARG_WITH(isa-spec,
+ [AS_HELP_STRING([--with-isa-spec=2.2],
+ [Set the default ISA spec version, default to 2.2, available options: 2.2, 20190608, 20191213])],
+ [],
+ [with_isa_spec=2.2]
+ )
+
AS_IF([test "x$with_abi" = xdefault],
[AS_CASE([$with_arch],
[*rv64g* | *rv64*d*], [with_abi=lp64d],
@@ -86,6 +93,7 @@ AS_IF([test "x$with_abi" = xdefault],
AC_SUBST(WITH_ARCH, --with-arch=$with_arch)
AC_SUBST(WITH_ABI, --with-abi=$with_abi)
AC_SUBST(WITH_TUNE, --with-tune=$with_tune)
+AC_SUBST(WITH_ISA_SPEC, --with-isa-spec=$with_isa_spec)
AC_ARG_ENABLE(multilib,
[AS_HELP_STRING([--enable-multilib],