From e4641906dd8cb03405bb4b6f5dda6eea06e87b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=89=E5=AE=89?= Date: Thu, 4 Jun 2020 22:19:15 +0800 Subject: [PATCH] Update the sanity limit from 200M to 220M per file. This is needed because the librustc_driver-*.so filesize on some targets now exceed 200M. i.e. nightly-mips64el-unknown-linux-gnuabi64 This will close #2362. The commit e23a7be3d39cf9d3b0f99626f20ce699b611ff15 , in which we lift the limit from 100M to 200M, was commited 9 monthes ago. Thus we can estimate that the driver size will grow 10M per month on nightly-mips64el target. With extra 20M limit, we will be able to perform a better solution in about 2 monthes. Signed-off-by: LIU An --- src/dist/component/package.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dist/component/package.rs b/src/dist/component/package.rs index dbd39a3341..b5619fbf63 100644 --- a/src/dist/component/package.rs +++ b/src/dist/component/package.rs @@ -296,7 +296,7 @@ fn unpack_without_first_dir<'a, R: Read>( let entries = archive .entries() .chain_err(|| ErrorKind::ExtractingPackage)?; - const MAX_FILE_SIZE: u64 = 200_000_000; + const MAX_FILE_SIZE: u64 = 220_000_000; let effective_max_ram = match effective_limits::memory_limit() { Ok(ram) => Some(ram as usize), Err(e) => {