Skip to content

Commit

Permalink
Warn about dragons in the Bazel include path
Browse files Browse the repository at this point in the history
#837 has caused a couple of
disappointments for PR authors, so I'm hoping this comment can save them
some time, or even help them towards finding a complete solution for the
problem.
  • Loading branch information
drigz committed May 31, 2023
1 parent 22491eb commit 0e71d2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bazel/glog.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ def glog_library(namespace = "google", with_gflags = 1, **kwargs):
":stl_logging_h",
":vlog_is_on_h",
],
# https://github.com/google/glog/issues/837: Replacing
# `strip_include_prefix` with `includes` would avoid spamming
# downstream projects with compiler warnings, but would also leak
# private headers like stacktrace.h. I suspect the only way to avoid
# this is to refactor the project including the CMake build, so that
# the private headers are in a glog_internal subdirectory.
strip_include_prefix = "src",
defines = final_lib_defines,
copts = final_lib_copts,
Expand Down

0 comments on commit 0e71d2b

Please sign in to comment.