Skip to content

Commit f44b742

Browse files
committed
fix: use std c++17
1 parent fb0687a commit f44b742

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/executable/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ load("@rules_cc//cc:defs.bzl", "cc_binary")
44
cc_binary(
55
name = "executable",
66
srcs = ["main.cpp"],
7+
copts = select({
8+
"@rules_cc/cc/compiler:msvc-cl": ["/std:c++17"],
9+
"//conditions:default": ["-std=c++17"],
10+
}),
711
)
812

913
doxygen(

0 commit comments

Comments
 (0)