summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2021-08-08 10:13:53 +0200
committerDaniel Llorens <lloda@sarc.name>2021-11-05 10:15:26 +0100
commitffb33fd66bba30f6a3e554be644fcaf269d39f05 (patch)
tree172d60f1f799989050fc8aa98460f875c937b9a4 /module
parent1a8294f495cb202f8fcd0f260627c58e7a4c4d10 (diff)
downloadguile-ffb33fd66bba30f6a3e554be644fcaf269d39f05.tar.gz
module/system/base/target.scm: support riscv32
Fix the following build failure on riscv32: system/base/target.scm:132:16: In procedure triplet-pointer-size: unknown CPU word size "riscv32" Fixes: - http://autobuild.buildroot.org/results/6705630c1484239ec8b73d57ebc2e2570fbfc8f8 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'module')
-rw-r--r--module/system/base/target.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/system/base/target.scm b/module/system/base/target.scm
index 8bdcd6603..74af64b9d 100644
--- a/module/system/base/target.scm
+++ b/module/system/base/target.scm
@@ -116,6 +116,7 @@
((string-match "^x86_64-.*-gnux32" triplet) 4) ; x32
+ ((string-match "32$" cpu) 4)
((string-match "64$" cpu) 8)
((string-match "64_?[lbe][lbe]$" cpu) 8)
((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh3" "sh4" "arc")) 4)