[Issue 9680] New: Include entry point location in "dmd -v -o-" output

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 9 21:04:50 PST 2013


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

           Summary: Include entry point location in "dmd -v -o-" output
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2013-03-10 07:04:48 EET ---
This is an enhancement request.

I would like it if dmd would print a line on the standard output when it
encounters an entry point function ("main" or "WinMain"). Optionally, the
module name where it was found should be printed as well.

This will allow build tools, like rdmd, to react intelligently based on what is
specified on the command-line. If there is no entry point defined, the build
tool may select to skip linking, or build a library, instead of attempting to
link an executable (which will likely fail due to lack of an entry point).

In my case, it would allow creating a file manager association with .d files,
such that executing the association on a main program file would compile and
link the program, and executing the association on a component module would
merely check the code for compilation errors.

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