about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/bootstrap/download.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs
index 5c863015adb..b9db9f12cdf 100644
--- a/src/bootstrap/download.rs
+++ b/src/bootstrap/download.rs
@@ -229,10 +229,10 @@ impl Config {
             "--retry",
             "3",
             "-Sf",
-            "-o",
         ]);
-        curl.arg(tempfile);
         curl.arg(url);
+        let f = File::create(tempfile).unwrap();
+        curl.stdout(Stdio::from(f));
         if !self.check_run(&mut curl) {
             if self.build.contains("windows-msvc") {
                 println!("Fallback to PowerShell");