Re: [cfe-users] Using llvm-ar & llvm-ranlib vs ar & ranlib for creating static libraries when thinLTO is enabled.

2018-08-13 Thread Teresa Johnson via cfe-users
I believe if you install LLVMgold.so into /usr/lib/bfd-plugins, the default ar and ranlib should pick it up without --plugin. See the info under Usage at https://llvm.org/docs/GoldPlugin.html. Teresa On Mon, Aug 13, 2018 at 8:46 AM Teresa Johnson wrote: > That's correct, we recommend use of the

Re: [cfe-users] Using llvm-ar & llvm-ranlib vs ar & ranlib for creating static libraries when thinLTO is enabled.

2018-08-13 Thread Teresa Johnson via cfe-users
That's correct, we recommend use of the llvm tools for working with bitcode. Note, however, that the GNU ar and ranlib do accept a plugin via --plugin, so you could try using those with the LLVM gold plugin to work with bitcode. I personally use the llvm-ar/llvm-ranlib however. Teresa On Mon, Aug

Re: [cfe-users] Using llvm-ar & llvm-ranlib vs ar & ranlib for creating static libraries when thinLTO is enabled.

2018-08-13 Thread David Blaikie via cfe-users
(Teresa, perhaps you can correct me if I'm wrong here) On Thu, Aug 9, 2018 at 2:21 PM Mateusz Zych via cfe-users < cfe-users@lists.llvm.org> wrote: > Hi :) > > I am trying to compile simple project consisting of an executable "app" > and static library "bar". > Note that I'm enabling thinLTO for