Skip to content

Commit 45d4134

Browse files
committed
Add some diagnostics about which clang we find and which flags we derive from it.
1 parent 371e744 commit 45d4134

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1734,11 +1734,15 @@ impl Bindings {
17341734
}).cloned().collect::<Vec<_>>()
17351735
};
17361736

1737+
debug!("Trying to find clang with flags: {:?}", clang_args_for_clang_sys);
1738+
17371739
// TODO: Make this path fixup configurable?
17381740
if let Some(clang) = clang_sys::support::Clang::find(
17391741
None,
17401742
&clang_args_for_clang_sys,
17411743
) {
1744+
debug!("Found clang: {:?}", clang);
1745+
17421746
// If --target is specified, assume caller knows what they're doing
17431747
// and don't mess with include paths for them
17441748
let has_target_arg = options
@@ -1798,6 +1802,8 @@ impl Bindings {
17981802
options.clang_args.push(f.name.to_str().unwrap().to_owned())
17991803
}
18001804

1805+
debug!("Fixed-up options: {:?}", options);
1806+
18011807
let time_phases = options.time_phases;
18021808
let mut context = BindgenContext::new(options);
18031809

0 commit comments

Comments
 (0)