mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
meson.eclass: include riscv bitness in cpu_family
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> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
committed by
Mike Gilbert
parent
199863ce36
commit
9745b8f754
@@ -1,4 +1,4 @@
|
||||
# Copyright 2017-2020 Gentoo Authors
|
||||
# Copyright 2017-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @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
|
||||
|
||||
Reference in New Issue
Block a user