sorry, new to bazel and am struggling to understand the nuances of how defines are passed to libraries. I thought the documentation states that cc_binary.defines are passed to all cc_library dependents but that doesn't seem true.
I have a simple application that looks like:
cc_binary(name="top", deps=["lib_a", "lib_b"], defines=["MYDEF=value"], ...)
cc_library(name="lib_a", srcs = [*.cc, *.h], hdrs=[*.h])
cc_library(name="lib_b", srcs = [*.cc, *.h], hdrs=[*.h])
When building lib_b, bazel doesn't set MYDEF. How do I do that?