https://bugs.kde.org/show_bug.cgi?id=407625

Maxim Cournoyer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Maxim Cournoyer <[email protected]> ---
I would like to add that the baked-in assumption that `clang` lives under the
LLVM installation prefix does not hold on GNU Guix, where llvm and clang are
packaged distinctly, each with their own installation prefix.

My hacky workaround is to patch it like:

(add-after 'unpack 'patch-build-system
                 (lambda* (#:key inputs #:allow-other-keys)
                   (substitute* "cmake/FindLLVM.cmake"
                     ;; The build system assumes Clang lives under
                     ;; the LLVM prefix.
                     (("\\$\\{LLVM_BIN_DIR}/clang")
                      (search-input-file inputs "bin/clang"))
                     (("\\$\\{LLVM_BIN_DIR}/clang-tidy")
                      (search-input-file inputs "bin/clang-tidy")))))

The build system will complain clang does not exist at the assumed location (it
checks for it), but it doesn't even try to use `PATH` as a fallback.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to