build: Use host machine family from meson

This commit is contained in:
Marco Trevisan (Treviño)
2021-09-02 13:23:30 +02:00
parent 2d20c6a8f2
commit 4ed67f9084
+1 -2
View File
@@ -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',
}