There are instructions on llvm.org on how to add the Gold plugin to LLVM-gcc; however since version 3.2 they are not using LLVM-gcc anymore, using Clang instead, and it's unclear on how to use it.
- Does anyone know how to add the Gold plugin to LLVM 3.2?
- Do we need to install this plug-in at all, or is it embedded in Clang?
I've read that if you don't have Gold plugin as linker, if you try -O4
for LTO it will treats it as -O3
, but I suppose it is when you use gcc system linker and not when using Clang, right?