Bug 3627 – -of with a filename with a double extension confuses linker

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Windows
Creation time
2009-12-17T12:29:00Z
Last change time
2014-02-24T15:30:18Z
Keywords
patch
Assigned to
nobody
Creator
dlang-bugzilla

Attachments

IDFilenameSummaryContent-TypeSize
526bug3627.patchProposed patchtext/plain683

Comments

Comment #0 by dlang-bugzilla — 2009-12-17T12:29:27Z
Created attachment 526 Proposed patch Starting with DMD 1.030, DMD will create object files using the base filename specified in -of. If the filename specified in -of has a double extension (for example, main_02.d.exe), DMD will attempt to pass to the linker only "main_02.d", omitting the ".obj" extension. However, the linker will notice that the suppled filename already has an extension, and tries to open "main_02.d" instead of "main_02.d.obj". This problem currently breaks DStress, at least on Windows. The attached patch checks for double extensions when constructing the linker argument list, and passes through the full file name in those cases.
Comment #1 by clugdbug — 2010-09-02T01:38:18Z
*** Issue 2886 has been marked as a duplicate of this issue. ***
Comment #2 by bugzilla — 2010-09-11T18:35:13Z