Skip to content

Commit 4583ec5

Browse files
authored
Document that BINDGEN_EXTRA_CLANG_ARGS can be used (#781)
1 parent b99c661 commit 4583ec5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

aws-lc-sys/builder/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,13 @@ fn main() {
631631
bindings_available = true;
632632
}
633633
} else if is_bindgen_required() {
634+
emit_warning("######");
635+
emit_warning(
636+
"If bindgen is unable to locate a header file, use the \
637+
BINDGEN_EXTRA_CLANG_ARGS environment variable to specify additional include paths.",
638+
);
639+
emit_warning("See: https://github.com/rust-lang/rust-bindgen?tab=readme-ov-file#environment-variables");
640+
emit_warning("######");
634641
let aws_lc_crypto_dir = Path::new(&manifest_dir).join("aws-lc").join("crypto");
635642
if !aws_lc_crypto_dir.exists() {
636643
emit_warning("######");

0 commit comments

Comments
 (0)