Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rethink lookup of clang-$VERSION in CMake #808

Open
Baltoli opened this issue Jul 20, 2023 · 0 comments
Open

Rethink lookup of clang-$VERSION in CMake #808

Baltoli opened this issue Jul 20, 2023 · 0 comments

Comments

@Baltoli
Copy link
Contributor

Baltoli commented Jul 20, 2023

Currently, our chained lookup for LLVM tools looks something like this:

find_program(CMAKE_CXX_COMPILER clang++-16)
find_program(CMAKE_CXX_COMPILER clang++-15)
find_program(CMAKE_CXX_COMPILER clang++-14)
find_program(CMAKE_CXX_COMPILER clang++-13)
find_program(CMAKE_CXX_COMPILER clang++-12)
find_program(CMAKE_CXX_COMPILER clang++-11)
find_program(CMAKE_CXX_COMPILER clang++)

This usually works fine for globally-installed versions of LLVM, but breaks down if I want to point the build system at a local build1. We should more consistently set the desired LLVM version, or use some of the options to find_program if possible.

Not a huge priority, as for this use-case I can just fiddle with the code, but it would be good to fix.

Footnotes

  1. For context, this is related to Support LLVM 16 #730 - the changes to pointer semantics are requiring more of a debugging process than we've needed for other version changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant