From d11900d5e76922790de90ebfb89f918673759a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 4 Sep 2023 13:27:09 -0400 Subject: [PATCH] meson: use llvm-config instead of cmake to fix linking errors with meson 1.2.1 The cmake path picks a random LLVM in /usr, which happens to be 32-bit LLVM, which fails to link with 64-bit Mesa. This is a meson, cmake, or LLVM bug. Acked-by: Dylan Baker Part-of: --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 8aa133dbb2e..e4570c59bab 100644 --- a/meson.build +++ b/meson.build @@ -1700,6 +1700,7 @@ with_llvm = false if _llvm.allowed() dep_llvm = dependency( 'llvm', + method : host_machine.system() == 'windows' ? 'auto' : 'config-tool', version : _llvm_version, modules : llvm_modules, optional_modules : llvm_optional_modules,