Skip to content

Commit 61d4637

Browse files
author
Jon Gjengset
committed
Bump recursion limit to 20
Infinite recursion will conveniently hit any limit, so will still be detected. But non-infinite cases can hit >5 without too much trouble when custom build scripts invoke cargo, or when custom toolchains themselves call into cargo (or both at the same time), so let's raise the bar slightly. See also https://discord.com/channels/442252698964721669/463480252723888159/859585370689896460
1 parent 08972a6 commit 61d4637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env_var.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::process::Command;
44

55
use crate::process;
66

7-
pub const RUST_RECURSION_COUNT_MAX: u32 = 5;
7+
pub const RUST_RECURSION_COUNT_MAX: u32 = 20;
88

99
#[allow(unused)]
1010
pub fn append_path(name: &str, value: Vec<PathBuf>, cmd: &mut Command) {

0 commit comments

Comments
 (0)