about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2024-08-04 14:54:20 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2024-08-05 16:19:58 +0000
commitb3df6dcb6069bdd8a7c1f5507df112830d7981b4 (patch)
tree762f98a7225224ca9c9b57fef778c8b39d1e42b2
parent9ad44ba73714afa2d803fab883d0f8969c8da5b0 (diff)
downloadrust-b3df6dcb6069bdd8a7c1f5507df112830d7981b4.tar.gz
rust-b3df6dcb6069bdd8a7c1f5507df112830d7981b4.zip
ensure the download folder exists when running `abi-cafe`
-rw-r--r--build_system/abi_cafe.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/build_system/abi_cafe.rs b/build_system/abi_cafe.rs
index c4a3cbf1259..e3f1162445b 100644
--- a/build_system/abi_cafe.rs
+++ b/build_system/abi_cafe.rs
@@ -1,4 +1,4 @@
-use crate::path::Dirs;
+use crate::path::{Dirs, RelPath};
 use crate::prepare::GitRepo;
 use crate::utils::{spawn_and_wait, CargoProject, Compiler};
 use crate::{build_sysroot, CodegenBackend, SysrootKind};
@@ -21,6 +21,7 @@ pub(crate) fn run(
     rustup_toolchain_name: Option<&str>,
     bootstrap_host_compiler: &Compiler,
 ) {
+    RelPath::DOWNLOAD.ensure_exists(dirs);
     ABI_CAFE_REPO.fetch(dirs);
     ABI_CAFE_REPO.patch(dirs);