Fix meson build for non-dev libclang

This commit is contained in:
Andy Williams 2017-10-10 15:55:31 +01:00
parent 53710764a9
commit bf182698be
1 changed files with 1 additions and 1 deletions

View File

@ -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'))