From: fedora.dm0@gmail.com
To: gentoo-dev@lists.gentoo.org
Cc: floppym@gentoo.org
Subject: [gentoo-dev] [PATCH] meson.eclass: include riscv bitness in cpu_family
Date: Mon, 03 May 2021 08:56:19 -0400 [thread overview]
Message-ID: <87tunkc6x8.fsf@gmail.com> (raw)
This makes cpu_family identify RISC-V systems as either "riscv64"
or "riscv32" to match the given tuple, or it will leave it as
"riscv" when the tuple has an unknown cpu field.
This fixes the expected values of cpu_family in meson projects:
https://mesonbuild.com/Reference-tables.html#cpu-families
Signed-off-by: David Michael <fedora.dm0@gmail.com>
---
eclass/meson.eclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index d0ce5adb355..e9c651fdeda 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -142,6 +142,11 @@ _meson_get_machine_info() {
case ${cpu_family} in
amd64) cpu_family=x86_64 ;;
arm64) cpu_family=aarch64 ;;
+ riscv)
+ case ${tuple} in
+ riscv32*) cpu_family=riscv32 ;;
+ riscv64*) cpu_family=riscv64 ;;
+ esac ;;
esac
# This may require adjustment based on CFLAGS
--
2.26.3
reply other threads:[~2021-05-03 12:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tunkc6x8.fsf@gmail.com \
--to=fedora.dm0@gmail.com \
--cc=floppym@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox