mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
cad5772c2c
commit
ea58955dda
2
.bazelrc
2
.bazelrc
@ -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
|
||||
|
3
third_party/gloo.BUILD
vendored
3
third_party/gloo.BUILD
vendored
@ -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(
|
||||
|
Reference in New Issue
Block a user