Skip to content

Commit 532003e

Browse files
committed
Don't always require all headers from all versions of BoringSSL
1 parent c3f96c9 commit 532003e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

boring-sys/build/main.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -741,12 +741,13 @@ fn generate_bindings(config: &Config) {
741741
];
742742
for header in &headers {
743743
let header_path = include_path.join("openssl").join(header);
744-
assert!(
745-
header_path.exists(),
746-
"{} is missing. Is {} correct? run `cargo clean`",
747-
header_path.display(),
748-
include_path.display()
749-
);
744+
if !header_path.exists() {
745+
println!(
746+
"cargo::warning={} is missing. Is {} correct?",
747+
header_path.display(),
748+
include_path.display()
749+
);
750+
}
750751
builder = builder.header(header_path.to_str().unwrap());
751752
}
752753

0 commit comments

Comments
 (0)