-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
29 lines (26 loc) · 752 Bytes
/
meson.build
File metadata and controls
29 lines (26 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
project('bitarray', 'cpp',
default_options: [
'buildtype=debugoptimized',
'warning_level=3',
'cpp_std=c++20',
'b_sanitize=address,undefined',
'b_lundef=false',
]
)
add_project_arguments(
'-mbmi2',
language: 'cpp',
)
gtest = dependency('gtest_main')
test_args = [
{'name': 'u128', 'args': ['-DTYPE=__uint128_t']},
{'name': 'u64', 'args': ['-DTYPE=uint64_t']},
{'name': 'u32', 'args': ['-DTYPE=uint32_t']},
{'name': 'u16', 'args': ['-DTYPE=uint16_t']},
{'name': 'u8', 'args': ['-DTYPE=uint8_t']},
]
foreach test_arg : test_args
test('bitarray-test-' + test_arg['name'],
executable('bitarray-test-' + test_arg['name'], 'bitarray-test.cc', dependencies: [gtest], cpp_args: [test_arg['args']])
)
endforeach