summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-12-23 18:17:04 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-12-23 18:17:04 +0100
commit45d413494507daa33641bfc3650273a77c949e69 (patch)
treeff1361a3505eaa7134f71900635aefcfb233788f
parent371e744e4158f23e75adb296433fc684076964ad (diff)
Add some diagnostics about which clang we find and which flags we derive from it.
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2793182b..79c986c7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1734,11 +1734,15 @@ impl Bindings {
}).cloned().collect::<Vec<_>>()
};
+ debug!("Trying to find clang with flags: {:?}", clang_args_for_clang_sys);
+
// TODO: Make this path fixup configurable?
if let Some(clang) = clang_sys::support::Clang::find(
None,
&clang_args_for_clang_sys,
) {
+ debug!("Found clang: {:?}", clang);
+
// If --target is specified, assume caller knows what they're doing
// and don't mess with include paths for them
let has_target_arg = options
@@ -1798,6 +1802,8 @@ impl Bindings {
options.clang_args.push(f.name.to_str().unwrap().to_owned())
}
+ debug!("Fixed-up options: {:?}", options);
+
let time_phases = options.time_phases;
let mut context = BindgenContext::new(options);