Rollup merge of #127850 - jieyouxu:bootstrap-llvm-config, r=onur-ozkan
bootstrap: open `llvm-config` as r+w This previously failed on Windows and prevented building on Windows for compiler stuff because the `llvm-config` file was open as read-only. Tested locally on a Windows machine. Fixes #127849.
This commit is contained in:
commit
f99f61b272
1 changed files with 1 additions and 1 deletions
|
@ -706,7 +706,7 @@ download-rustc = false
|
|||
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…
Add table
Reference in a new issue