-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: bazel passes '-std=c++0x' which is too old #4254
Comments
@pogo59 I created PR with fix for your issue. But also you can achieve same results by running Let me know if that helped you |
@pgawro yes that allowed the build to complete, thanks! |
We strongly recommend setting the standard via command line: https://github.com/abseil/abseil-cpp/blob/master/FAQ.md#how-to-i-set-the-c-dialect-used-to-build-abseil I'll review bazel quickstart docs and make sure we have an example for setting the language standard. |
Having a googletest doc that describes how to build (and test!) googletest using bazel would be even more helpful! |
…el quickstart and readme. An equivalent for CMake was merged in google@aa99ce5 Fixes google#4254 PiperOrigin-RevId: 536759641 Change-Id: I8400064a24e0d78f17a0720046f505efa1167b4f
Describe the issue
Trying to build googletest with bazel, I see it passing
'-std=c++0x'
on the gcc command line, which of course fails the version check for C++14 or later in gtest-port.h. I am a bazel noob but I don't see anything in the BUILD files related to this.Steps to reproduce the problem
What version of GoogleTest are you using?
$ git rev-parse HEAD
e49c6b9
What operating system and version are you using?
Ubuntu 18.04
What compiler and version are you using?
What build system are you using?
$ bazel --version
bazel 6.2.0
Additional context
CONTRIBUTING.md doesn't say a word about using bazel so I'm just guessing how to build with it.
The text was updated successfully, but these errors were encountered: