clspv icon indicating copy to clipboard operation
clspv copied to clipboard

Hardcoded /lib/cmake path breaks on /lib64 systems

Open bwarden opened this issue 10 months ago • 1 comments

Clear Linux, a 64-bit distribution, uses /usr/lib64 for libraries and /usr/lib64/cmake for corresponding cmake helpers in. Hard-coding /lib/cmake breaks builds in this environment, and in any others that reserve /usr/lib for 32-bit fallback libraries.

https://github.com/google/clspv/blob/55000a5855e802c3986a0b29320bd725602e890d/lib/CMakeLists.txt#L142-L148 https://github.com/google/clspv/blob/55000a5855e802c3986a0b29320bd725602e890d/tools/clspv-opt/CMakeLists.txt#L47-L50

bwarden avatar Mar 05 '25 22:03 bwarden

I guess one answer would be that this has been made to use an externally built LLVM, meaning not the one from clspv's dependencies. But not to use a LLVM installed somewhere. At least that's what I get looking at the code, and the commits leading to it. When one builds LLVM (without installing it), those .cmake files are always stored at those paths with lib.

But improving it to support both an externally built LLVM, or an externally installed LLVM would be good.

Note that clspv is not based on a release version of LLVM, as it tries to follow upstream as closely as possible (considering the time available to the maintainers). So using a LLVM installed is not something most people have been looking for, as it's quite rare to align well with clspv needs.

rjodinchr avatar Mar 25 '25 16:03 rjodinchr