From 3301f3110f0f0f73819a70564276e1265eb0d83d Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Mon, 14 Nov 2022 19:43:21 -0600 Subject: Only build the freestanding test on Linux x86_64 --- contrib/meson/meson/tests/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/meson/meson/tests/meson.build b/contrib/meson/meson/tests/meson.build index 71db2e6..df47b83 100644 --- a/contrib/meson/meson/tests/meson.build +++ b/contrib/meson/meson/tests/meson.build @@ -45,8 +45,9 @@ test_exes = { 'sources': files(lz4_source_root / 'tests/freestanding.c'), 'c_args': ['-ffreestanding', '-Wno-unused-parameter', '-Wno-declaration-after-statement'], 'link_args': ['-nostdlib'], - 'build': cc.get_id() in ['gcc', 'clang'], - 'override_options': ['optimization=1'] + 'build': cc.get_id() in ['gcc', 'clang'] and + host_machine.system() == 'linux' and host_machine.cpu_family() == 'x86_64', + 'override_options': ['optimization=1'], }, 'fullbench': { 'sources': files(lz4_source_root / 'tests/fullbench.c'), -- cgit v0.12