mirror of
https://gitee.com/openharmony/third_party_rust_bindgen
synced 2024-12-13 02:07:14 +00:00
tests: Guess modern libclang version when we fail to parse a version.
Should fix the test failures described in #1991 and #1975 on modern Mac.
This commit is contained in:
parent
e92dcf2a3f
commit
e59aa9218b
@ -146,7 +146,7 @@ fn compare_generated_header(
|
||||
expectation.push("libclang-3.9");
|
||||
} else {
|
||||
match clang_version().parsed {
|
||||
None => {}
|
||||
None => expectation.push("libclang-9"),
|
||||
Some(version) => {
|
||||
let (maj, min) = version;
|
||||
let version_str = if maj >= 9 {
|
||||
|
Loading…
Reference in New Issue
Block a user