Summary: -of with a filename with a double extension confuses
           Product: D
           Version: 1.030
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: patch
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Vladimir <> 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:
------- You are receiving this mail because: -------

Reply via email to