[Issue 767] New: compiler shall print dependencies and pragma(lib)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 29 09:51:45 PST 2006


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

           Summary: compiler shall print dependencies and pragma(lib)
           Product: D
           Version: 0.178
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: benoit at tionex.de


Let the compiler have a new commandline switch:

-bldinfo
-bldinfo=filename
Prints the bldinfo either to the console or into the given file. The bldinfo
contains informations about found dependencies and pragma(lib) statements. 

Every bldinfo line has the format:
"bldinfo <recordtype>: <info>"

Every active import from a module will be printed like this:
"bldinfo import: %s(\"%s\") => %s(\"%s\")", moduleFQN, moduleFileName,
importedModuleFQN, importedModuleFileName

Every active pragma(lib) is printed like this:
"bldinfo pragma-lib: %s(\"%s\") => \"%s\"", moduleFQN, moduleFileName,
stringFromPragma

"Active" here means, the statement is relevant for compilation. It is not
deactivated through version/debug/static-if conditions. 

Filenames are printed as absolute paths.
Filenames and strings are escaped like the D string literals and they are
double  quoted.

If printed to the console, the bldinfo is printed in between the other
messages.
The bldinfo is printed without any special order.
The bldinfo is printed for all modules given on the command line.
The bldinfo is also printed recursively for all modules that are imported.


-- 



More information about the Digitalmars-d-bugs mailing list