Closed pvelesko closed 1 month ago
LTO builds shouldn't be enabled if the it is not supported or working. Perhaps, CMake's check is not good enough?
I guess the check is not sufficient. Can you please share how you configured LLVM to enable LTO?
Can you please share how you configured LLVM to enable LTO?
I installed binutils-dev
(on Ubuntu) and added -DLLVM_BINUTILS_INCDIR=/usr/include
to LLVM's configuration. I think, that was enough to enable LTO builds on chipStar.
And you didn't enable LLVM_ENABLE_LTO
?
And you didn't enable LLVM_ENABLE_LTO?
I didn't enable that one. I think that only optimizes LLVM build by applying LTO on it. I don't recall needing configuration options other than the -DLLVM_BINUTILS_INCDIR=
in the above. You can check if the LLVM builds the plugin (LLVMgold.so) needed for the LTO - it should be in <install-or-build-dir>/lib/
directory.
@linehill Could you update
configure_llvm.sh
to build a working LTO compiler?