www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9684] New: rdmd -lib <filename> produces corrupted file


           Summary: rdmd -lib <filename> produces corrupted file
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code klickverbot.at

--- Comment #0 from David Nadlinger <code klickverbot.at> 2013-03-10 18:15:10
PDT ---
The original test case from issues 6535

module lib;
import std.stdio;

void libraryFunction()
    writeln("You have executed the library function!");
rdmd --build-only -lib lib.d

works with rdmd from Git master, but if the command is replaced with just "rdmd
-lib lib.d", i.e. the --build-only flag is not specified, it still creates a
corrupt library file, at least on Linux.

rdmd should probably default to the equivalent of --build-only if -lib is

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 10 2013