cmake: check llvm-config in separate function, fix cmake error#14033
Merged
andrewrk merged 1 commit intoziglang:masterfrom Dec 27, 2022
BratishkaErik:fix-cmake
Merged
cmake: check llvm-config in separate function, fix cmake error#14033andrewrk merged 1 commit intoziglang:masterfrom BratishkaErik:fix-cmake
andrewrk merged 1 commit intoziglang:masterfrom
BratishkaErik:fix-cmake
Conversation
Contributor
Author
|
Oops, I forgot that |
Contributor
Author
|
If possible can you add this to 0.10.1 please? Thanks |
Member
|
Reverted in b1207b3. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request #12136 has greatly improved LLVM search logic for CMake (kudos to @topolarity !). HOWEVER, it caused following regression: https://bugs.gentoo.org/886569. So, when targets is missing for LLVM, it prints:
I thought that this function should be macro instead so that this body replaces all occurencies of NEED_TARGET. HOWEVER 😄 ,
continue()does not work in macro: https://gitlab.kitware.com/cmake/cmake/-/issues/22052.This PR moves "checking if llvm-config supports all what we need" in separate function (that saves potential error in variable, and if it is not empty, this llvm-config is marked as unsuitable), and slightly touches output, so now errors look like this:
and this is normal output: