Revert "sci-misc/llama-cpp: introduce lto USE flag"

This reverts commit 91f8575242.

We do not want `USE=lto` .
https://wiki.gentoo.org/wiki/LTO#Exceptions_.28USE.3D.22lto.22.29

There is no need to have a `USE=lto` here. All it does is enable
`CMAKE_INTERPROCEDURAL_OPTIMIZATION`, which only passes a potentially
bad version of `-flto`.

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2026-05-22 20:48:14 +02:00
parent afdb4633f5
commit 4b4650d059
2 changed files with 1 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ SLOT="0"
CPU_FLAGS_X86=( avx avx2 f16c )
# wwma USE explained here: https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md#hip
IUSE="curl openblas +openmp blis rocm cuda opencl openssl vulkan flexiblas wmma webui lto examples"
IUSE="curl openblas +openmp blis rocm cuda opencl openssl vulkan flexiblas wmma webui examples"
REQUIRED_USE="
?? (
@@ -123,7 +123,6 @@ src_configure() {
-DLLAMA_BUILD_SERVER=ON
-DCMAKE_SKIP_BUILD_RPATH=ON
-DGGML_NATIVE=0 # don't set march
-DGGML_LTO=$(usex lto)
-DGGML_RPC=ON
-DLLAMA_CURL=$(usex curl)
-DLLAMA_OPENSSL=$(usex openssl)