From 45d413494507daa33641bfc3650273a77c949e69 Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Sun, 23 Dec 2018 18:17:04 +0100 Subject: Add some diagnostics about which clang we find and which flags we derive from it. --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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::>() }; + 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); -- cgit v1.2.3