Skip to content

Commit 77fb392

Browse files
authored
Reverse order of MAKEFLAGS priority (#152)
Signed-off-by: Jakub Beránek <[email protected]>
1 parent 496175e commit 77fb392

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jemalloc-sys/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,10 @@ fn make_command(make_cmd: &str, build_dir: &Path, num_jobs: &str) -> Command {
372372

373373
if let Ok(makeflags) = std::env::var("CARGO_MAKEFLAGS") {
374374
let makeflags = if let Ok(orig_makeflags) = std::env::var("MAKEFLAGS") {
375-
format!("{orig_makeflags} {makeflags}")
375+
// Prepend Cargo makeflags before externally configured makeflags
376+
// Adding Cargo makeflags at the end was causing issues, see
377+
// https://github.com/tikv/jemallocator/issues/92#issuecomment-3536269176.
378+
format!("{makeflags} {orig_makeflags}")
376379
} else {
377380
makeflags
378381
};

0 commit comments

Comments
 (0)