Move bazel to c++17 (#89297)

Splitting out various smaller pieces from https://github.com/pytorch/pytorch/pull/85969
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89297
Approved by: https://github.com/huydhn
This commit is contained in:
Nikita Shulga
2022-11-19 01:13:08 +00:00
committed by PyTorch MergeBot
parent cad5772c2c
commit ea58955dda
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
build --cxxopt=--std=c++14
build --cxxopt=--std=c++17
build --copt=-I.
# Bazel does not support including its cc_library targets as system
# headers. We work around this for generated code

View File

@ -75,8 +75,7 @@ cc_library(
]
) + if_cuda(glob(["gloo/cuda*.cc"])),
copts = [
"-std=gnu++11",
"-std=c++11",
"-std=c++17",
],
visibility = ["//visibility:public"],
deps = [":gloo_headers"] + if_cuda(