File tree 1 file changed +21
-5
lines changed
1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import os ;
5
5
6
- local BOOST_DIR = "/usr/local" ;
6
+ local boost_dir = [ os.environ BOOST_DIR ] ;
7
+ if ! $(boost_dir)
8
+ {
9
+ boost_dir = "/usr/local" ;
10
+ }
7
11
8
12
#using clang : : ;
9
13
@@ -16,19 +20,20 @@ if ! $(cxx_std)
16
20
project mapbox_variant
17
21
: requirements
18
22
<cxxflags>-std=$(cxx_std)
19
- <include>$(BOOST_DIR )/include
23
+ <include>$(boost_dir )/include
20
24
<include>include
21
25
<include>test/include
22
26
<variant>release:<cxxflags>-march=native
27
+ <threading>single:<define>SINGLE_THREADED
23
28
: default-build
24
29
<variant>release
25
30
<optimization>speed
31
+ <threading>single
26
32
;
27
33
28
34
exe variant-test
29
35
: test/bench_variant.cpp
30
- : #<define>SINGLE_THREADED
31
- <variant>release:<cxxflags>-Wweak-vtables
36
+ : <variant>release:<cxxflags>-Wweak-vtables
32
37
;
33
38
explicit variant-test ;
34
39
@@ -52,10 +57,21 @@ exe reference_wrapper_test
52
57
;
53
58
explicit reference_wrapper_test ;
54
59
60
+ exe lambda_overload_test
61
+ : test/lambda_overload_test.cpp
62
+ ;
63
+ explicit lambda_overload_test ;
64
+
65
+ exe hashable_test
66
+ : test/hashable_test.cpp
67
+ ;
68
+ explicit hashable_test ;
69
+
55
70
install out
56
71
: variant-test
57
72
binary-visitor-test
58
- recursive-wrapper-test
59
73
unique-ptr-test
60
74
reference_wrapper_test
75
+ lambda_overload_test
76
+ hashable_test
61
77
;
You can’t perform that action at this time.
0 commit comments