From af8c1e303f16b032655eaa15587adbdccaac7f3e Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Mon, 13 Jun 2022 15:17:19 +0200 Subject: [PATCH] fix error message for download-ci-llvm --- src/bootstrap/native.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 79f2338b7abb9..2b0b7f65b07ed 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -179,13 +179,13 @@ fn download_ci_llvm(builder: &Builder<'_>, llvm_sha: &str) { let filename = format!("rust-dev-nightly-{}.tar.xz", builder.build.build.triple); let tarball = rustc_cache.join(&filename); if !tarball.exists() { - let help_on_error = "error: failed to download llvm from ci\n -\nhelp: old builds get deleted after a certain time -\nhelp: if trying to compile an old commit of rustc, disable `download-ci-llvm` in config.toml: -\n -\n[llvm] -\ndownload-ci-llvm = false -\n + let help_on_error = "error: failed to download llvm from ci + +help: old builds get deleted after a certain time +help: if trying to compile an old commit of rustc, disable `download-ci-llvm` in config.toml: + +[llvm] +download-ci-llvm = false "; builder.download_component(base, &format!("{}/{}", url, filename), &tarball, help_on_error); }