Skip to content

Commit

Permalink
Warn windows-gnu users that the bundled gcc can't compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Jul 9, 2018
1 parent ec039c7 commit 6b6a7a4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bootstrap/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 6b6a7a4

Please sign in to comment.