From bf182698be2708d18035404cacf69f8770aae7b3 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 10 Oct 2017 15:55:31 +0100 Subject: [PATCH] Fix meson build for non-dev libclang --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e511f18..dc4350e 100644 --- a/meson.build +++ b/meson.build @@ -39,7 +39,7 @@ else config_h.set_quoted('BEAR_COMMAND', '') endif -if get_option('libclang') == true +if get_option('libclang') == true and cc.has_header('clang-c/Index.h') clang = cc.find_library('clang', dirs : ['/usr/local/opt/llvm/lib']) clang_include_dir_command = run_command(find_program('scripts/clang_include_dir.sh'))