Skip to content

Commit cd14393

Browse files
committed
Add parallel flags after --
1 parent ae31e19 commit cd14393

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,10 +681,6 @@ impl Config {
681681
cmd.env("MAKEFLAGS", flags);
682682
}
683683

684-
if let Some(flags) = parallel_flags {
685-
cmd.arg(flags);
686-
}
687-
688684
cmd.arg("--build").arg(".");
689685

690686
if !self.no_build_target {
@@ -697,6 +693,10 @@ impl Config {
697693
.args(&self.build_args)
698694
.current_dir(&build);
699695

696+
if let Some(flags) = parallel_flags {
697+
cmd.arg(flags);
698+
}
699+
700700
run(&mut cmd, "cmake");
701701

702702
println!("cargo:root={}", dst.display());

0 commit comments

Comments
 (0)