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: nob...@puremagic.com
        ReportedBy: thecybersha...@gmail.com


--- Comment #0 from Vladimir <thecybersha...@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: -------

Reply via email to