unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#49941: [PATCH] module/system/base/target.scm: support riscv32
@ 2021-08-08  8:13 Fabrice Fontaine
  2022-10-01 13:26 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-08-08  8:13 UTC (permalink / raw)
  To: 49941; +Cc: Fabrice Fontaine

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>
---
 module/system/base/target.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/module/system/base/target.scm b/module/system/base/target.scm
index 2088cd866..dba46664d 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")) 4)
-- 
2.30.2






^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-01 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-08  8:13 bug#49941: [PATCH] module/system/base/target.scm: support riscv32 Fabrice Fontaine
2022-10-01 13:26 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).