Skip to content

Commit 3bee507

Browse files
committed
bootstrap: open llvm_config as r+w
This previously failed on Windows because the `llvm_config` file was open as read-only.
1 parent cb12b52 commit 3bee507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/download.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ download-rustc = false
706706
let file_times = fs::FileTimes::new().set_accessed(now).set_modified(now);
707707

708708
let llvm_config = llvm_root.join("bin").join(exe("llvm-config", self.build));
709-
let llvm_config_file = t!(File::open(llvm_config));
709+
let llvm_config_file = t!(File::options().write(true).open(llvm_config));
710710

711711
t!(llvm_config_file.set_times(file_times));
712712

0 commit comments

Comments
 (0)