aboutsummaryrefslogtreecommitdiff
path: root/riscv/riscv.ac
diff options
context:
space:
mode:
authoremelcher <elmar@dsc.ufcg.edu.br>2021-08-23 20:01:20 -0300
committerGitHub <noreply@github.com>2021-08-23 16:01:20 -0700
commit01be71430cadc4b6df7ed16a4d32dd7c57c9bb34 (patch)
tree431024ff47fcf10c7781ae991058f653943f73ea /riscv/riscv.ac
parent68e4f06a69ca9101552a086c9abe5fdf6656b52a (diff)
downloadriscv-isa-sim-01be71430cadc4b6df7ed16a4d32dd7c57c9bb34.zip
riscv-isa-sim-01be71430cadc4b6df7ed16a4d32dd7c57c9bb34.tar.gz
riscv-isa-sim-01be71430cadc4b6df7ed16a4d32dd7c57c9bb34.tar.bz2
configure option --with-target (#776)
* add configure option --with-target * executed autoconf
Diffstat (limited to 'riscv/riscv.ac')
-rw-r--r--riscv/riscv.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/riscv.ac b/riscv/riscv.ac
index 3acecc2..bdc2c3f 100644
--- a/riscv/riscv.ac
+++ b/riscv/riscv.ac
@@ -26,6 +26,11 @@ AC_ARG_WITH(varch,
AC_DEFINE_UNQUOTED([DEFAULT_VARCH], "$withval", [Default value for --varch switch]),
AC_DEFINE_UNQUOTED([DEFAULT_VARCH], ["vlen:128,elen:64,slen:128"], [Default value for --varch switch]))
+AC_ARG_WITH(target,
+ [AS_HELP_STRING([--with-target=riscv64-unknown-elf],
+ [Sets the default target config])],
+ AC_DEFINE_UNQUOTED([TARGET_ARCH], "$withval", [Default value for --target switch]),
+ AC_DEFINE_UNQUOTED([TARGET_ARCH], ["riscv64-unknown-elf"], [Default value for --target switch]))
AC_SEARCH_LIBS([dlopen], [dl dld], [
AC_DEFINE([HAVE_DLOPEN], [], [Dynamic library loading is supported])