[llvm-dev] Compiler used to build LLVM

Rui Ueyama via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 27 18:36:19 PDT 2016


Isn't the information already available in .comment section?

On Thu, Oct 27, 2016 at 6:21 PM, Flamedoge via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> >I'd like to make LLD embed version information so that we can determine
> if an executable was created by LLD and if that's the case which version of
> LLD.
> >ld.bfd doesn't seem to embed any information, so we cannot tell whether
> an executable was linked by ld.bfd or not easily.
> >ld.gold embeds a string "GNU gold <version>" as ".note.gnu.gold-version"
> section contents.
>
> Echoing another thread, there seems to be a way to embed host compiler
> toolchain info in the assembly.
> -Kevin
>
> On Thu, Oct 27, 2016 at 5:39 PM, Maxime Chevalier-Boisvert via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hello,
>>
>> We’d like to keep track of which clang version was used to build our LLVM
>> binaries. We use cmake and ninja with clang to build. What do you people
>> think would be the cleanest way to know which version of clang is used, on
>> a user’s machine, to build those binaries. I’m hoping to script this. I was
>> thinking that getting cmake/ninja to spit out this information, if
>> possible, would probably be best.
>>
>> Thank you for your help,
>>
>> - Maxime
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161027/b9c44406/attachment.html>


More information about the llvm-dev mailing list