about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2018-07-09 15:28:12 +0200
committerljedrz <ljedrz@gmail.com>2018-07-09 15:28:12 +0200
commit6b6a7a4691e5e0b3285bd7fc3ceb40ca6ce3bd84 (patch)
treee05f01720b89ea0ea84c66f5a2a6ed937408eeb9 /src/bootstrap
parentec039c7cb14e75866f7943845fc370205f4e4fd4 (diff)
downloadrust-6b6a7a4691e5e0b3285bd7fc3ceb40ca6ce3bd84.tar.gz
rust-6b6a7a4691e5e0b3285bd7fc3ceb40ca6ce3bd84.zip
Warn windows-gnu users that the bundled gcc can't compile
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/dist.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 0587dc8896d..3343ef89d7b 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -308,6 +308,14 @@ fn make_win_dist(
         builder.copy_to_folder(&src, &target_bin_dir);
     }
 
+    // Warn windows-gnu users that the bundled GCC cannot compile C files
+    builder.create(
+        &target_bin_dir.join("DO NOT USE THIS gcc.exe FOR COMPILATION.txt"),
+        &"gcc.exe contained in this folder cannot be used for compiling C files - it is only\
+         used as a linker. In order to be able to compile projects containing C code use\
+         the GCC provided by MinGW or Cygwin."
+    );
+
     //Copy platform libs to platform-specific lib directory
     let target_lib_dir = plat_root.join("lib").join("rustlib").join(target_triple).join("lib");
     fs::create_dir_all(&target_lib_dir).expect("creating target_lib_dir failed");