File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
- build --cxxopt='-std=c++17'
Original file line number Diff line number Diff line change
1
+ COPTS = select ({
2
+ "@bazel_tools//src/conditions:windows" : ["/std:c++17" ],
3
+ "//conditions:default" : ["--std=c++17" ],
4
+ })
5
+
1
6
cc_library (
2
7
name = "soa" ,
3
8
hdrs = glob (["vapid/*.h" ]),
@@ -7,19 +12,22 @@ cc_library(
7
12
cc_binary (
8
13
name = "scratch" ,
9
14
srcs = ["scratch.cc" ],
10
- deps = [":soa" ]
15
+ deps = [":soa" ],
16
+ copts = COPTS
11
17
)
12
18
13
19
cc_binary (
14
20
# deprecated in favor of benchmarks below
15
21
name = "benchmark" ,
16
22
srcs = ["benchmark.cc" , "tictoc.hpp" ],
17
- deps = [":soa" ]
23
+ deps = [":soa" ],
24
+ copts = COPTS
18
25
)
19
26
20
27
cc_binary (
21
28
name = "benchmarks" ,
22
29
srcs = ["benchmarks.cc" ],
23
30
deps = [":soa" ,
24
- "@com_github_google_benchmark//:benchmark_main" ]
31
+ "@com_github_google_benchmark//:benchmark_main" ],
32
+ copts = COPTS
25
33
)
You can’t perform that action at this time.
0 commit comments