Skip to content

Commit 757ccf1

Browse files
charliermarshzanieb
authored andcommitted
Create build directory when downloading LLVM (astral-sh#285)
1 parent a4e6c53 commit 757ccf1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/release.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ pub async fn bootstrap_llvm() -> Result<PathBuf> {
473473
let filename = url.path_segments().unwrap().last().unwrap();
474474

475475
let llvm_dir = Path::new("build").join("llvm");
476+
std::fs::create_dir_all(&llvm_dir)?;
476477

477478
// If `llvm` is already available with the target version, return it.
478479
if llvm_dir.join(filename).exists() {

0 commit comments

Comments
 (0)