-
Notifications
You must be signed in to change notification settings - Fork 4.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
while compiling cc_library from DefaultInfo bazel ignores bazelrc #15623
Comments
Fixed via adding Thanks =) |
|
That my fault, generated stuff is |
@fmeum Could you please explain, why defaul bazel:linux --cxxopt='-std=c++17' is not valid for this build? Other srcs in the repo that copliling also with cc_library work fine |
@onelxj Do you have a complete example reproducing the issue you could share? In a local example I tried |
@fmeum the thing there that target provided in |
That makes a big difference and is likely the reason. However, I'm not familiar enough with the C++ rules to say whether it can be fixed. @onelxj Could you reopen the issue so that it can be proberly triaged to the C++ team? |
Thank you for your time! |
Trying to force C++ dialect (std c++17) in subcommands on various platforms and using various bazel build arguments…
Legend:
dev note: use |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post |
Description of the bug:
I have a rule that returns DefaultInfo(depset(...)) - folder that consists of c++ sources and headers, then I'm trying to compile it with
The sources require c++17, in bazelrc I have
but whenever I try to run - it uses C++11 instead of 17
if uncomment
copts
, that includes '-std=c++17' - it worksWhat's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
Linux Ubuntu 22.04
What is the output of
bazel info release
?release 5.1.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: