Skip to content

Commit 23b3b57

Browse files
committed
bindgen: Update libclang attribute documentation
Clarify that the libclang attribute in rust_bindgen_toolchain is only optional when the bindgen binary is statically linked. This ensures users are aware that omitting it for dynamically linked binaries may lead to non-hermetic builds by falling back to system libraries.
1 parent 3a86ae1 commit 23b3b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/bindgen/private/bindgen.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ For additional information, see the [Bazel toolchains documentation](https://doc
528528
default = True,
529529
),
530530
"libclang": attr.label(
531-
doc = "A cc_library that provides bindgen's runtime dependency on libclang.",
531+
doc = "A cc_library providing bindgen's runtime dependency on libclang. This attribute is required for hermeticity when bindgen is dynamically linked. If None, bindgen must be statically linked; else, system libraries will be used instead.",
532532
cfg = "exec",
533533
providers = [CcInfo],
534534
allow_files = True,

0 commit comments

Comments
 (0)