[Issue 9684] New: rdmd -lib <filename> produces corrupted file

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 10 18:15:11 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9684

           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 at puremagic.com
        ReportedBy: code at klickverbot.at


--- Comment #0 from David Nadlinger <code at 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
specified.

-- 
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