wilzbach / tools-test

1 stars 0 forks source link

Win RDMD: ".exe" no longer auto-added when -of is used #100

Closed wilzbach closed 10 years ago

wilzbach commented 10 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#12149 From: Nick Sabalausky <bus_dbugzilla@semitwist.com> Reported version: D2

wilzbach commented 10 years ago

Comment author: Nick Sabalausky <bus_dbugzilla@semitwist.com>

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.

wilzbach commented 10 years ago

Comment author: Nick Sabalausky <bus_dbugzilla@semitwist.com>

Pull request: https://github.com/D-Programming-Language/tools/pull/114

wilzbach commented 10 years ago

Comment author: Kenji Hara <k.hara.pg@gmail.com>

master branch: https://github.com/D-Programming-Language/tools/commit/24823d08bbcfaf601091ab1a30132a168803bdfe

2.065 branch: https://github.com/D-Programming-Language/tools/commit/9236321d3753790797ce28691d28970e76db7b2f

wilzbach commented 10 years ago

Comment author: github-bugzilla@puremagic.com

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 BZ#116 from AndrejMitrovic/Test12149

Add test-case for Issue 12149 - RDMD -of switch doesn't append .exe to an executable on Windows.