Merge pull request #115 from MartinNowak/pick114

Merge pull request #114 from Abscissa/master
This commit is contained in:
Hara Kenji 2014-02-14 00:09:46 +09:00
commit 9236321d37

3
rdmd.d
View file

@ -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))