unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] Recognize LoongArch compilation targets.
@ 2022-11-02  5:15 Zhang Ning
  0 siblings, 0 replies; only message in thread
From: Zhang Ning @ 2022-11-02  5:15 UTC (permalink / raw)
  To: guile-devel

* module/system/base/target.scm (cpu-endianness): Add case for "Loongarch" variants

Signed-off-by: Zhang Ning <zhangn1985@outlook.com>
---
 module/system/base/target.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/module/system/base/target.scm b/module/system/base/target.scm
index 87ab5b0c4..a218daa52 100644
--- a/module/system/base/target.scm
+++ b/module/system/base/target.scm
@@ -101,6 +101,8 @@
              (endianness little))
             ((string-match "riscv[1-9][0-9]*" cpu)
              (endianness little))
+            ((string-match "loongarch[1-9][0-9]*" cpu)
+             (endianness little))
             (else
              (error "unknown CPU endianness" cpu)))))
 
-- 
2.38.1




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-02  5:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02  5:15 [PATCH] Recognize LoongArch compilation targets Zhang Ning

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).