ccls icon indicating copy to clipboard operation
ccls copied to clipboard

Make sure to get the resource directory from the right clang compiler

Open rherilier opened this issue 1 year ago • 2 comments

The resource directory is always retrieved from the system's default clang compiler instead of the targeted one.

I notice it after removing clang from my system (which is an alias for clang-16) while keeping clang-19 installed.

rherilier avatar Nov 29 '24 08:11 rherilier

I download prebuilt Clang packages on https://releases.llvm.org/download.html then set CMAKE_PREFIX_PATH to the root directory of the extracted tarball. ``Clang_EXECUTABLE` will respect that.

clang-${Clang_VERSION_MAJOR} will not work if the distribution only provides clang but not something like clang-19.

MaskRay avatar Dec 01 '24 18:12 MaskRay

Thanks, I did not expect any differences between Windows and UNICES builds...

rherilier avatar Dec 06 '24 14:12 rherilier