Bug 12149 – Win RDMD: ".exe" no longer auto-added when -of is used

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
tools
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2014-02-13T00:28:00Z
Last change time
2014-02-13T09:37:00Z
Assigned to
nobody
Creator
bus_dbugzilla

Comments

Comment #0 by bus_dbugzilla — 2014-02-13T00:28:08Z
> rdmd -ofprog prog.d On 2.064.2 and below, that produces "prog.exe". On 2.065-b3 it produces "prog" with no .exe extension. Then it tries to run "prog.exe" which, if you're lucky doesn't already exist, or if you're unlucky already exists as an older version of your program. This appears to occur because of the change where RDMD now appends ".tmp" to the -of arg it passes DMD, and then removes the ".tmp" extension after DMD succeeds. DMD sees the ".tmp" extension and therefore decides it doesn't need to auto-add a .exe extension.
Comment #1 by bus_dbugzilla — 2014-02-13T00:45:54Z
Comment #2 by k.hara.pg — 2014-02-13T07:11:30Z
Comment #3 by github-bugzilla — 2014-02-13T09:37:00Z
Commits pushed to master at https://github.com/D-Programming-Language/tools https://github.com/D-Programming-Language/tools/commit/99d3901701253396821c2d9f63d763ee1299fb80 Add test-case for Issue 12149 - RDMD -of switch doesn't append .exe to an executable on Windows. https://github.com/D-Programming-Language/tools/commit/a4294fa0b11bfba8412a6fc198edfa7677d50938 Merge pull request #116 from AndrejMitrovic/Test12149 Add test-case for Issue 12149 - RDMD -of switch doesn't append .exe to an executable on Windows.