]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml: ggml-cpu: force-no-lto-for-cpu-feats (#19609)
authorTalha Can Havadar <redacted>
Tue, 17 Feb 2026 11:22:46 +0000 (12:22 +0100)
committerGitHub <redacted>
Tue, 17 Feb 2026 11:22:46 +0000 (13:22 +0200)
commitae2d3f28a86f7132af742e89e212fcd874cf27f2
treefcda9f95c6a9bd1f43d6c6a3b5a29a616475e8fd
parentad8207af7730bd6675652319263b578e24a5c0e4
ggml: ggml-cpu: force-no-lto-for-cpu-feats (#19609)

When LTO enabled in build environments it forces all builds to have LTO
in place. But feature detection logic is fragile, and causing Illegal
instruction errors with lto. This disables LTO for the feature
detection code to prevent cross-module optimization from inlining
architecture-specific instructions into the score function. Without this,
LTO can cause SIGILL when loading backends on older CPUs (e.g., loading
power10 backend on power9 crashes before feature check runs).
ggml/src/ggml-cpu/CMakeLists.txt