[cfe-dev] Equivalent of VC++'s "Use Library Dependency Inputs" in clang?

Reid Kleckner rnk at google.com
Sun Jun 29 10:57:35 PDT 2014


"Use library dependency inputs" is a build system option, not a compiler
option.  It passes .obj files on the command line instead of .lib files.
 There's no compiler option for either cl.exe or Clang.


On Sun, Jun 29, 2014 at 2:47 AM, Cheng Zhao <zcbenz at gmail.com> wrote:

> Hi cfe-dev,
>
> I'm trying to have an object file which has no symbols referenced by
> other files to be linked into a static library, this post [1] shows
> what I am trying to do.
>
> In VC++ there is a "Use Library Dependency Inputs" option that can
> achieve what I want to do. The "Use Library Dependency Inputs" says
> "When this property is set to Yes, the project system links in the
> .obj files for .libs produced by dependent projects, thus enabling
> incremental linking.", which in my understanding is to link object
> files of static libraries directly.
>
> So is there an equivalent option in clang that can do it? Thanks!
>
> [1]:
> http://ofekshilon.com/2013/04/06/forcing-construction-of-global-objects-in-static-libraries/
>
> Cheng
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140629/5a3f51e3/attachment.html>


More information about the cfe-dev mailing list