]> www.infradead.org Git - qemu-nvme.git/commitdiff
meson.build: Merge riscv32 and riscv64 cpu family
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 16 Nov 2021 09:50:42 +0000 (10:50 +0100)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 17 Nov 2021 09:18:22 +0000 (19:18 +1000)
In ba0e73336200, we merged riscv32 and riscv64 in configure.
However, meson does not treat them the same.  We need to merge
them here as well.

Fixes: ba0e73336200
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20211116095042.335224-1-richard.henderson@linaro.org
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
meson.build

index 36540e07947eb8978a449a173fbaf81a46e2ba5d..e2d38a43e6e6950f1a146a9541ad6597cb00d0e5 100644 (file)
@@ -59,6 +59,12 @@ supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv', 'x86', 'x86_64',
   'arm', 'aarch64', 'mips', 'mips64', 'sparc', 'sparc64']
 
 cpu = host_machine.cpu_family()
+
+# Unify riscv* to a single family.
+if cpu in ['riscv32', 'riscv64']
+  cpu = 'riscv'
+endif
+
 targetos = host_machine.system()
 
 if cpu in ['x86', 'x86_64']