[commit: ghc] master: aclocal.m4: allow riscv and riscv64 CPU (beba89a)
git at git.haskell.org
git at git.haskell.org
Mon Jul 16 21:30:42 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/beba89a0f16681c85d39fc8a894bde4162ff492a/ghc
>---------------------------------------------------------------
commit beba89a0f16681c85d39fc8a894bde4162ff492a
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date: Mon Jul 16 22:28:21 2018 +0100
aclocal.m4: allow riscv and riscv64 CPU
Tested on riscv64-unknown-linux-gnu tuple.
Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
>---------------------------------------------------------------
beba89a0f16681c85d39fc8a894bde4162ff492a
aclocal.m4 | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/aclocal.m4 b/aclocal.m4
index 11c7acd..ce621b8 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"
;;
More information about the ghc-commits
mailing list