Skip to content

Commit e2d947d

Browse files
committed
rustpkg: Don't execute the standard build logic if there is a pkg.rs
1 parent a2761ac commit e2d947d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/librustpkg/rustpkg.rc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,14 @@ impl Ctx {
234234
}
235235
};
236236

237-
// Find crates inside the workspace
237+
// If there was a package script, it should have finished
238+
// the build already. Otherwise...
238239
if !custom {
240+
// Find crates inside the workspace
239241
src.find_crates();
242+
// Build it!
243+
src.build(&dst_dir, cfgs);
240244
}
241-
242-
// Build it!
243-
src.build(&dst_dir, cfgs);
244245
}
245246
~"clean" => {
246247
if args.len() < 1 {

0 commit comments

Comments
 (0)