Skip to content
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

BUILD.bazel: Add CXX_OPTS to specify -std=c++14 when needed #4100

Closed
wants to merge 1 commit into from

Conversation

dneto0
Copy link
Contributor

@dneto0 dneto0 commented Dec 21, 2022

Googletest requires a C++14 compiler.
But Bazel can default to givin GCC option -std=c++0x which is unable to compile googletest.

Specify -std=c++14 for any compiler that isn't MSVC and isn't on QNX. I don't know what C++ compiler Bazel invokes for QNX.

Fixes: #4098

Googletest requires a C++14 compiler.
But Bazel can default to givin GCC option -std=c++0x which is unable
to compile googletest.

Specify -std=c++14 for any compiler that isn't MSVC and isn't on QNX.
I don't know what C++ compiler Bazel invokes for QNX.

Fixes: google#4098
@dneto0
Copy link
Contributor Author

dneto0 commented Dec 22, 2022

I'm proposing this with an internal CL.

@dneto0 dneto0 closed this Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: can't compile gtest-matchers.cc on Linux with gcc via bazel 5 or bazel 6
1 participant