diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2016-07-12 11:17:10 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2016-07-12 11:17:10 -0700 |
commit | 7f3b666f55c9f01c2f2fd725c1686e1a509df173 (patch) | |
tree | 2e256eed2b68c15a0e0dfa6984acf96bd2252fca /configure.ac | |
parent | b6c8a03dcd7ed3c109d2c9da797b295f160f051d (diff) | |
download | riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.zip riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.gz riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.bz2 |
Add a "--with-xlen" configure argument (#16)
The tools had riscv64-unknown-elf-gcc hard-coded all over the place.
This lets users override that if they have a 32-bit toolchain.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d85ddd6..ebfd649 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,14 @@ AC_INIT(riscv-tests, 1.0) cross_compiling=yes AC_PROG_CC +AC_ARG_WITH(xlen, + [AS_HELP_STRING([--with-xlen=XLEN], + [Set XLEN, the X-register bit width (default is 64)])], + AC_SUBST(XLEN, $withval), + AC_SUBST(XLEN, 64) + ) + + AC_OUTPUT( Makefile ) |