Output debug info on how #[phase] extern crate foo; gets resolved.

This commit is contained in:
Felix S. Klock II 2014-04-25 18:33:07 +02:00
parent acfc99dddd
commit a8646be1a8

View File

@ -524,6 +524,9 @@ fn load_extern_macros(krate: &ast::ViewItem, fld: &mut MacroExpander) {
None => return
};
debug!("load_extern_macros: mapped crate {} to path {} and registrar {:s}",
crate_name, path.display(), registrar);
let lib = match DynamicLibrary::open(Some(&path)) {
Ok(lib) => lib,
// this is fatal: there are almost certainly macros we need