]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml: ggml-cpu: force-no-lto-for-cpu-feats (llama/19609)
authorTalha Can Havadar <redacted>
Tue, 17 Feb 2026 11:22:46 +0000 (12:22 +0100)
committerGeorgi Gerganov <redacted>
Fri, 27 Feb 2026 18:57:58 +0000 (20:57 +0200)
commit58855d08c21baca953b9958c4b2a2b71bd5a2e47
tree6d68ed2eaf0608539d5c45c3ff63cf7024628e7b
parentcf4bd07028c007d42aeaa1f987a8159f7cb0cc92
ggml: ggml-cpu: force-no-lto-for-cpu-feats (llama/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