-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
meson.build
32 lines (29 loc) · 892 Bytes
/
meson.build
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
30
31
# meson commands cheat sheet:
#
# # Setup ###################
#
# release & debug setup
# CXX="ccache clang++" meson setup --buildtype release builddir/clang_release
# CXX="ccache clang++" meson setup builddir/clang_debug
# c++20 build
# CXX="ccache clang++" meson setup -Dcpp_std=c++20 builddir/clang_cpp20
# lcov coverage:
# CXX="ccache clang++" meson setup -Db_coverage=true builddir/coverage
# ninja clean && ninja test && ninja coverage
#
# # Testing ################
#
# Run with valgrind:
# meson test --wrap='valgrind --leak-check=full --error-exitcode=1'
#
project('unordered_dense', 'cpp',
version: '4.4.0',
license: 'MIT',
default_options : [
'cpp_std=c++17',
'warning_level=3',
'werror=true',
'b_ndebug=true', # otherwise absl is really slow!
])
incdir = include_directories('include')
subdir('test')