-
Notifications
You must be signed in to change notification settings - Fork 248
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
Support per_file_copt
#1332
Comments
I'm not sure how you'd implement this as you'd need support from the configure script or the cmake script to apply flags to specific files which I don't think there is a general solution for. |
@jsharpe thanks for your quick reply. I do not have control over all Could there be a way to explicitly set additional |
Another approach could be to match the regex (here |
I don't think starlark has visibility of the |
@meteorcloudy @fmeum could you answer this? |
Options passed as
--per_file_copt
are currently not honored byrules_foreign_cc
.This is blocking us from enabling
-Werror
for our own code but ignoring warnings on external code where we have no control over.We want to do this with the following
.bazelrc
:See bazelbuild/bazel#24528 for further details.
The text was updated successfully, but these errors were encountered: