Skip to content

Commit

Permalink
Merge pull request #114 from Abscissa/master
Browse files Browse the repository at this point in the history
Fix #12149: ".exe" not auto-added with -of on windows.
  • Loading branch information
MartinNowak committed Feb 13, 2014
2 parents ef71a52 + 86de51f commit 24823d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rdmd.d
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ private int rebuild(string root, string fullExe,
string workDir, string objDir, in string[string] myDeps,
string[] compilerFlags, bool addStubMain)
{
version (Windows)
fullExe = fullExe.defaultExtension(".exe");

// Delete the old executable before we start building.
yap("stat ", fullExe);
if (!dryRun && exists(fullExe))
Expand Down

0 comments on commit 24823d0

Please sign in to comment.