[Issue 768] New: A switch to print predefined version identifiers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 29 14:07:51 PST 2006


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

           Summary: A switch to print predefined version identifiers
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: larsivar at igesund.net


Tools working with D code, and build tools in particular, need to know which
version identifiers are set by the compiler. To make this exact and less error
prone (a tool can't check which identifiers are set without knowing their
names), a standard switch should be added to all D compilers (I have picked DMD
here as this would presumably be a frontend feature.) 

The switch ( -versionids or similar) should print the set identifiers to stdout
in an easily parseable format. The set printed by the compiler may change
depending on environment or additional switches, for instance would GDC
presumably print varying identifiers if cross compiling targets are specified.


-- 



More information about the Digitalmars-d-bugs mailing list