-
Notifications
You must be signed in to change notification settings - Fork 2.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
publicly visible Bazel target no longer provides any headers #596
Comments
Do you have a repro for this? #615 seems not to break the build, but I wasn't able to find docs on how to enable layering_check. |
You can enabled layering_check by adding:
|
I tried that but it didn't reproduce the failure with glog at HEAD. |
I forgot that we use Clang to do the build. Bazel uses GCC by default, which doesn't support layering_check. Building with clang, via:
will reproduce |
This will avoid regressions on google#596.
This will avoid regressions on google#596.
Thank you! I was able to reproduce it, and #615 seems to fix it. |
The only target accessible via Bazel (
@com_github_google_glog//:glog
) no longer provides any headers, due to PR ##488. This breaks when usingfeatures = ["layering_check"]
. Given the low-level nature of logging libraries and pervasive dependencies in a code base which uses them, it's infeasible to disable that feature for just the targets which depend on glog. The benefits afford by the check (particularly for code bases which are imported internally) means that disabling it for our entire code base isn't reasonable.The text was updated successfully, but these errors were encountered: