[BE] Fix incompatible-std-redefinition warning (#141630)

Fixes following warning during CUDA bazel builds
```
nvcc-real warning : incompatible redefinition for option 'std', the last value of this option was used
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/141630
Approved by: https://github.com/cyyever, https://github.com/kit1980
This commit is contained in:
Nikita Shulga
2024-11-27 05:06:34 +00:00
committed by PyTorch MergeBot
parent 3d5fe0ce78
commit e3161ba6ec

View File

@ -15,7 +15,7 @@ index ba992fc..e4e8364 100644
repository_ctx, repository_ctx,
"BAZEL_CXXOPTS", "BAZEL_CXXOPTS",
- "-std=c++0x", - "-std=c++0x",
+ "-std=c++11", + "-std=c++17",
False, False,
), ":") ), ":")