Skip to content

Commit 5f30890

Browse files
committed
prlimit tree-reduce
1 parent 35024dd commit 5f30890

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,7 @@ fn analyze() {
26252625
// todo handle all Executables
26262626

26272627
// reduce code using $Executable,
2628-
// make sure to prlimit that
2628+
// make sure to prlimit that // check
26292629
// try to fmt the mcve
26302630
// ok => save fmttd
26312631
// rustfmt needs --edition from ice.flags
@@ -2669,7 +2669,10 @@ fn analyze() {
26692669
let bin = executable.path();
26702670

26712671
if matches!(Executable::Rustc, executable) {
2672-
let mut trd = std::process::Command::new("treereduce-rust");
2672+
let mut trd = std::process::Command::new("prlimit");
2673+
trd.arg(format!("--as={}", 3076_u32 * 1000_u32 * 1000_u32))
2674+
.arg(format!("--cpu=120")) // 2 mins
2675+
.arg("treereduce-rust");
26732676
trd.args([
26742677
"--quiet",
26752678
"--passes=10",

0 commit comments

Comments
 (0)