Having a cc_library target always included in the headers field of the NodeInfo provided by the Node.js toolchain means that there must be always c++ toolchain available when using rules_nodejs which is not desirable. This change makes the cc_library target in headers an opt-in via the include_headers attribute.
Fixes https://github.com/bazelbuild/rules_nodejs/issues/3722.
Having a
cc_library
target always included in theheaders
field of theNodeInfo
provided by the Node.js toolchain means that there must be always c++ toolchain available when using rules_nodejs which is not desirable. This change makes thecc_library
target in headers an opt-in via theinclude_headers
attribute.Users can set this attribute as follows,
WORKSPACE:
MODULE.bazel