summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-07-16 22:28:21 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-07-16 22:28:21 +0100
commitbeba89a0f16681c85d39fc8a894bde4162ff492a (patch)
tree66d2bedc7ee29838e06de4f662a43087d05084e8 /aclocal.m4
parent8ec48990fee9e245bb2fe40dc6f65b61b8612157 (diff)
downloadhaskell-beba89a0f16681c85d39fc8a894bde4162ff492a.tar.gz
aclocal.m4: allow riscv and riscv64 CPU
Tested on riscv64-unknown-linux-gnu tuple. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 11c7acdeb2..ce621b8f53 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -217,7 +217,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS],
mipsel)
test -z "[$]2" || eval "[$]2=ArchMipsel"
;;
- hppa|hppa1_1|ia64|m68k|nios2|rs6000|s390|s390x|sh4|vax)
+ hppa|hppa1_1|ia64|m68k|nios2|riscv|riscv64|rs6000|s390|s390x|sh4|vax)
test -z "[$]2" || eval "[$]2=ArchUnknown"
;;
*)
@@ -1878,6 +1878,12 @@ case "$1" in
powerpc*)
$2="powerpc"
;;
+ riscv64*)
+ $2="riscv64"
+ ;;
+ riscv*)
+ $2="riscv"
+ ;;
rs6000)
$2="rs6000"
;;