[Bug 153] New: add option to list all libraries from pragma(lib, "...")

via D.gnu d.gnu at puremagic.com
Mon Aug 18 21:15:38 PDT 2014


http://bugzilla.gdcproject.org/show_bug.cgi?id=153

            Bug ID: 153
           Summary: add option to list all libraries from pragma(lib,
                    "...")
           Product: GDC
           Version: development
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: ketmar at ketmar.no-ip.org

i fully understand that full support for pragma(lib) is nearly impossible. but
can we at least add CLI flag that will instruct compiler to write all libraries
from that pragma to some file during compilation?

this way build tools can pass something like
"-fwrite-pragma-lib-to=linklibssmth" and then invoke linker with
-Wl, at linklibssmth

build tool can create this files for each compiled module and then pass 'em all
to linker.

this is far from full supporting of pragma(lib), but it at least will allow
build tools to extract, cache and use that info without built-in (or external)
D parser.

and gdc should do it during 'real' compilation to avoid execing gdc second time
just to obtain this info. we always can do 'gdc -c -o /dev/null' if we want
only info w/o object files.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20140819/3af58ef2/attachment.html>


More information about the D.gnu mailing list