From 4ed67f90846076fb9724f0dc54ad5d6ae792e1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 2 Sep 2021 13:23:30 +0200 Subject: [PATCH] build: Use host machine family from meson --- tests/meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 8e69622a..7106ff58 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -297,8 +297,7 @@ if get_option('tod') 'fake_test_dev_tod_current': meson.current_build_dir(), } - machine = run_command(meson.get_compiler('c'), '-dumpmachine').stdout().strip() - if machine.startswith('x86_64-') + if host_machine.cpu_family() == 'x86_64' tod_dirs += { 'fake_test_dev_tod_v1': meson.current_source_dir() / 'tod-drivers', }