// Get targets
let targets = normalize(&self.lib, &self.bin);
+ if targets.is_empty() {
+ debug!("manifest has no build targets; project={}", self.project);
+ }
+
let mut deps = Vec::new();
// Collect the deps
pub fn compile(manifest_path: &str) -> CargoResult<()> {
log!(4, "compile; manifest-path={}", manifest_path);
- let root_dep = try!(ops::read_manifest(manifest_path)).to_dependency();
+ let manifest = try!(ops::read_manifest(manifest_path));
+
+ debug!("loaded manifest; manifest={}", manifest);
+
+ let root_dep = manifest.to_dependency();
let configs = try!(config::all_configs(os::getcwd()));
+ debug!("loaded config; configs={}", configs);
+
let config_paths = configs.find_equiv(&"paths").map(|v| v.clone()).unwrap_or_else(|| ConfigValue::new());
let mut paths: Vec<Path> = match config_paths.get_value() {
type Args = Vec<String>;
pub fn compile_packages(pkgs: &core::PackageSet) -> CargoResult<()> {
+ debug!("compiling; pkgs={}", pkgs);
+
let mut sorted = match pkgs.sort() {
Some(pkgs) => pkgs,
None => return Err(other_error("circular dependency detected"))
}
fn compile_pkg<T>(pkg: &core::Package, pkgs: &core::PackageSet, exec: |&ProcessBuilder| -> CargoResult<T>) -> CargoResult<()> {
+ debug!("compiling; pkg={}; targets={}; deps={}", pkg, pkg.get_targets(), pkg.get_dependencies());
// Build up the destination
// let src = pkg.get_root().join(Path::new(pkg.get_source().path.as_slice()));
let target_dir = pkg.get_absolute_target_dir();
+ debug!("creating target dir; path={}", target_dir.display());
+
// First ensure that the directory exists
try!(mk_target(&target_dir).map_err(|_| other_error("could not create target directory")));