diff --git a/src/librustpkg/rustpkg.rc b/src/librustpkg/rustpkg.rc index b3b47e7aeda1..ca8161067c2b 100644 --- a/src/librustpkg/rustpkg.rc +++ b/src/librustpkg/rustpkg.rc @@ -234,13 +234,14 @@ impl Ctx { } }; - // Find crates inside the workspace + // If there was a package script, it should have finished + // the build already. Otherwise... if !custom { + // Find crates inside the workspace src.find_crates(); + // Build it! + src.build(&dst_dir, cfgs); } - - // Build it! - src.build(&dst_dir, cfgs); } ~"clean" => { if args.len() < 1 {