Skip to content

Commit f99f61b

Browse files
authored
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.
2 parents 5d7466e + 3bee507 commit f99f61b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)