We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f260a80 commit 12aa62bCopy full SHA for 12aa62b
jemalloc-sys/build.rs
@@ -302,10 +302,14 @@ fn main() {
302
303
// Make:
304
let make = make_cmd(&host);
305
- run(Command::new(make)
306
- .current_dir(&build_dir)
307
- .arg("-j")
308
- .arg(num_jobs.clone()));
+ let mut cmd = Command::new(make);
+ cmd.current_dir(&build_dir);
+ if let Ok(makeflags) = std::env::var("CARGO_MAKEFLAGS") {
+ cmd.env("MAKEFLAGS", makeflags);
309
+ } else {
310
+ cmd.arg("-j").arg(num_jobs.clone());
311
+ }
312
+ run(&mut cmd);
313
314
// Skip watching this environment variables to avoid rebuild in CI.
315
if env::var("JEMALLOC_SYS_RUN_JEMALLOC_TESTS").is_ok() {
0 commit comments