[cfe-dev] Embedding Compiler Invocation in Object Files

Sean Silva via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 14 18:39:12 PDT 2016


On Tue, Jun 14, 2016 at 3:53 PM, Joerg Sonnenberger via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On Tue, Jun 14, 2016 at 01:07:47PM -0400, Keno Fischer via cfe-dev wrote:
> > I wanted to revive the idea of adding a feature that would have clang
> embed
> > its invocation in the created object file (like a compilation database,
> but
> > internal to the object file).
>
> Most obvious question first, which invocation should that be? The
> original clang command? The -cc1 invocation?
>

There isn't necessarily a 1-to-1 mapping so this is tricky. For Keno's use
case cc1 is probably fine, but for more general build reconstruction /
tooling stuff the driver is preferable based on my experience.

We may not want to conflate the two use cases (since I suspect the CC1 case
is much more straightforward).

-- Sean Silva


>
> Joerg
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160614/380a1800/attachment.html>


More information about the cfe-dev mailing list