Skip to content

Commit e2d4a2c

Browse files
committed
Set MAKEFLAGS to CARGO_MAKEFLAGS for the make command
1 parent 887845a commit e2d4a2c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fn main() {
3535
}
3636

3737
let result = Command::new(make)
38+
.env("MAKEFLAGS", env::var("CARGO_MAKEFLAGS").unwrap_or_default())
3839
.args(&["-R", "-f", "makefile.cargo"])
3940
.stdout(Stdio::inherit())
4041
.stderr(Stdio::inherit())

makefile.cargo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ SRC_DIR = $(shell pwd)
126126
.PHONY : all maybe-configure
127127

128128
all: maybe-configure
129-
cd $(OUT_DIR) && $(MAKE) -f Makefile -j$(NUM_JOBS)
129+
cd $(OUT_DIR) && $(MAKE) -f Makefile
130130

131131
# Only touch and run configure if we need to, to avoid unnecessary rebuilds.
132132
# The second two time checks handle the case of configure.in and configure having

0 commit comments

Comments
 (0)