[Issue 3627] New: -of with a filename with a double extension confuses linker
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 17 12:29:28 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3627
Summary: -of with a filename with a double extension confuses
linker
Product: D
Version: 1.030
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: patch
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir <thecybershadow at gmail.com> 2009-12-17 12:29:27 PST ---
Created an attachment (id=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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list