From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Shea Levy Newsgroups: gmane.lisp.guile.devel Subject: [PATCH] Recognize RISC-V compilation targets. Date: Sun, 25 Feb 2018 20:34:39 -0500 Message-ID: <20180226013439.9461-1-shea@shealevy.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1519618823 17919 195.159.176.226 (26 Feb 2018 04:20:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 04:20:23 +0000 (UTC) Cc: Shea Levy To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 26 05:20:19 2018 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqAGv-0004EG-UX for guile-devel@m.gmane.org; Mon, 26 Feb 2018 05:20:18 +0100 Original-Received: from localhost ([::1]:57070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqAIy-0004nw-BU for guile-devel@m.gmane.org; Sun, 25 Feb 2018 23:22:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eq7gn-0008CR-Gv for guile-devel@gnu.org; Sun, 25 Feb 2018 20:34:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eq7gk-0005zz-9Y for guile-devel@gnu.org; Sun, 25 Feb 2018 20:34:49 -0500 Original-Received: from smtprelay0165.hostedemail.com ([216.40.44.165]:48434 helo=smtprelay.hostedemail.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eq7gk-0005zf-5K for guile-devel@gnu.org; Sun, 25 Feb 2018 20:34:46 -0500 Original-Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id C3287182CED5B; Mon, 26 Feb 2018 01:34:43 +0000 (UTC) X-Session-Marker: 7368656140736865616C6576792E636F6D X-HE-Tag: sand16_808e40591b216 X-Filterd-Recvd-Size: 1200 Original-Received: from localhost (c-71-235-10-46.hsd1.nh.comcast.net [71.235.10.46]) (Authenticated sender: shea@shealevy.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Mon, 26 Feb 2018 01:34:43 +0000 (UTC) X-Mailer: git-send-email 2.16.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 216.40.44.165 X-Mailman-Approved-At: Sun, 25 Feb 2018 23:22:18 -0500 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19496 Archived-At: * module/system/base/target.scm (cpu-endianness): Add case for "riscv" variants. Signed-off-by: Shea Levy --- 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 95ab8d8c9..93616f4a3 100644 --- a/module/system/base/target.scm +++ b/module/system/base/target.scm @@ -86,6 +86,8 @@ (endianness big)) ((string=? "aarch64" cpu) (endianness little)) + ((string-match "riscv[1-9][0-9]*" cpu) + (endianness little)) (else (error "unknown CPU endianness" cpu))))) -- 2.16.1