How to link object to libraries with LLVM >= 3.1 ? ( no GNU ld )

后端 未结 2 1379
暗喜
暗喜 2020-12-20 01:58

How I can generate a working executable with the tools provided with Llvm/Clang ( version 3.3 (trunk 168461) ) ?

I have compiled an object with clang++ -c [...

相关标签:
2条回答
  • 2020-12-20 02:39

    There are no llvm linker at this time (yet). And no, llvm-link is not a replacement for LLVM ld. So, you'd need to use ar / ranlib / ld from your binutils for now.

    0 讨论(0)
  • 2020-12-20 02:39

    If you want to link LLVM bitcode files, you should have a look at the LLVM Gold Plugin : http://llvm.org/docs/GoldPlugin.html

    0 讨论(0)
提交回复
热议问题