summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2022-11-15 01:43:21 (GMT)
committerTristan Partin <tristan@partin.io>2022-12-02 23:42:41 (GMT)
commit3301f3110f0f0f73819a70564276e1265eb0d83d (patch)
tree5e736ccdcebf605e7b5ec12eeee3e5f83441c28b
parent3946e3daed02bdb07a4360a4e7344c2ec2e44193 (diff)
downloadlz4-3301f3110f0f0f73819a70564276e1265eb0d83d.zip
lz4-3301f3110f0f0f73819a70564276e1265eb0d83d.tar.gz
lz4-3301f3110f0f0f73819a70564276e1265eb0d83d.tar.bz2
Only build the freestanding test on Linux x86_64
-rw-r--r--contrib/meson/meson/tests/meson.build5
1 files 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'),