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

[frameworks: 15 llvm] fails with llvm/clang 14.0.0 #10249

Closed
lazka opened this issue Apr 8, 2022 · 2 comments
Closed

[frameworks: 15 llvm] fails with llvm/clang 14.0.0 #10249

lazka opened this issue Apr 8, 2022 · 2 comments
Milestone

Comments

@lazka
Copy link
Contributor

lazka commented Apr 8, 2022

As pointed out here: #10248 (comment)

The error I see in the logs (check_source_compiles: C: needs to be enabled before use.) suggest it is llvm/llvm-project#53950

And indeed

diff --git a/mesonbuild/dependencies/data/CMakeListsLLVM.txt b/mesonbuild/dependencies/data/CMakeListsLLVM.txt
index 9d3e41234..4084597d3 100644
--- a/mesonbuild/dependencies/data/CMakeListsLLVM.txt
+++ b/mesonbuild/dependencies/data/CMakeListsLLVM.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${C
 
 set(PACKAGE_FOUND FALSE)
 
+project(MesonTemp LANGUAGES C CXX)
+
 while(TRUE)
   find_package(LLVM REQUIRED CONFIG QUIET)

seems to make it work here.

I see that the generic CMakeLists file has some logic to inject the language, so I'm not sure if that should be extended or if the above patch is enough.

based on the file history -> pinging @mensinda

@mensinda
Copy link
Member

mensinda commented Apr 8, 2022

Should be fixed with #10250.

@lazka
Copy link
Contributor Author

lazka commented Apr 13, 2022

thanks!

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

3 participants