Skip to content

Commit ea58955

Browse files
malfetpytorchmergebot
authored andcommitted
Move bazel to c++17 (pytorch#89297)
Splitting out various smaller pieces from pytorch#85969 Pull Request resolved: pytorch#89297 Approved by: https://github.com/huydhn
1 parent cad5772 commit ea58955

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
build --cxxopt=--std=c++14
1+
build --cxxopt=--std=c++17
22
build --copt=-I.
33
# Bazel does not support including its cc_library targets as system
44
# headers. We work around this for generated code

third_party/gloo.BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ cc_library(
7575
]
7676
) + if_cuda(glob(["gloo/cuda*.cc"])),
7777
copts = [
78-
"-std=gnu++11",
79-
"-std=c++11",
78+
"-std=c++17",
8079
],
8180
visibility = ["//visibility:public"],
8281
deps = [":gloo_headers"] + if_cuda(

0 commit comments

Comments
 (0)