www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3627] New: -of with a filename with a double extension confuses linker

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: thecybershadow gmail.com



---
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: -------
Dec 17 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3627


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bitworld qq.com



*** Issue 2886 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 02 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3627


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



18:35:13 PDT ---
http://www.dsource.org/projects/dmd/changeset/676 and 677

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 11 2010