You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are adding a large set of warning flags with extra_cxxflags and extra_cflags. I just tried to disable a warning locally in a cc_library with with copts = ["-Wno-foo"], and it surprisingly didn't work. I built with bazel build -s and saw that the compiler invocation adds the extra_cxxflagsafter the flags from copts. This means that one cannot disable any flag from extra_cxxflags locally in a cc_library.
Was it intentional to do it this way or was that just how it was set up?
Describe the feature
If it makes sense, then the feature would be to swap the order of extra_cxxflags and copts. (Same for extra_cflags).
The text was updated successfully, but these errors were encountered:
What is the current behavior?
We are adding a large set of warning flags with
extra_cxxflags
andextra_cflags
. I just tried to disable a warning locally in acc_library
with withcopts = ["-Wno-foo"]
, and it surprisingly didn't work. I built withbazel build -s
and saw that the compiler invocation adds theextra_cxxflags
after the flags fromcopts
. This means that one cannot disable any flag fromextra_cxxflags
locally in acc_library
.Was it intentional to do it this way or was that just how it was set up?
Describe the feature
If it makes sense, then the feature would be to swap the order of
extra_cxxflags
andcopts
. (Same forextra_cflags
).The text was updated successfully, but these errors were encountered: