bootstrap: open llvm_config as r+w
This previously failed on Windows because the `llvm_config` file was open as read-only.
This commit is contained in:
parent
cb12b52f16
commit
3bee50736d
@ -706,7 +706,7 @@ pub(crate) fn maybe_download_ci_llvm(&self) {
|
||||
let file_times = fs::FileTimes::new().set_accessed(now).set_modified(now);
|
||||
|
||||
let llvm_config = llvm_root.join("bin").join(exe("llvm-config", self.build));
|
||||
let llvm_config_file = t!(File::open(llvm_config));
|
||||
let llvm_config_file = t!(File::options().write(true).open(llvm_config));
|
||||
|
||||
t!(llvm_config_file.set_times(file_times));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user