summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 603a6555..f202cc18 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -31,9 +31,12 @@ pub fn main() {
let bind_args: Vec<_> = env::args().collect();
let version = clang_version();
- let expected_version = if cfg!(feature = "testing_only_llvm_stable") {
+ let expected_version = if cfg!(feature = "testing_only_libclang_4") {
+ (4, 0)
+ } else if cfg!(feature = "testing_only_libclang_3_8") {
(3, 8)
} else {
+ // Default to 3.9.
(3, 9)
};