diff --git a/.bazelrc b/.bazelrc index ce8406b58aa..f8ff2215f2d 100644 --- a/.bazelrc +++ b/.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 diff --git a/third_party/gloo.BUILD b/third_party/gloo.BUILD index 3f623e54e6a..e9deaa13fc6 100644 --- a/third_party/gloo.BUILD +++ b/third_party/gloo.BUILD @@ -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(