summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-07-17 20:01:44 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-07-17 20:14:09 +0100
commit5e63a25249f3cb07300258e115af9ff55079d2ea (patch)
tree695d9255e5b3b1642478d6c190da4ac7c21bee2d /aclocal.m4
parent973ff4a142e77e247caebf828aa51f9810394938 (diff)
downloadhaskell-5e63a25249f3cb07300258e115af9ff55079d2ea.tar.gz
aclocal.m4: narrow down 'riscv*' to 'riscv-*' and 'riscv32*'
Two minor changes: - 32-bit CPU macro is called riscv32_HOST_ARCH (was riscv_HOST_ARCH) - shrink understood tuples from riscv* to riscv-* and riscv32*-* as a tiny safeguard against riscv128*- in future. Suggested-by: James Clarke <jrtc27@jrtc27.com> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index ce621b8f53..eef4dc796f 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|riscv|riscv64|rs6000|s390|s390x|sh4|vax)
+ hppa|hppa1_1|ia64|m68k|nios2|riscv32|riscv64|rs6000|s390|s390x|sh4|vax)
test -z "[$]2" || eval "[$]2=ArchUnknown"
;;
*)
@@ -1881,8 +1881,8 @@ case "$1" in
riscv64*)
$2="riscv64"
;;
- riscv*)
- $2="riscv"
+ riscv|riscv32*)
+ $2="riscv32"
;;
rs6000)
$2="rs6000"