diff --git a/meson.build b/meson.build index 90e32397750..275c8698f11 100644 --- a/meson.build +++ b/meson.build @@ -799,7 +799,10 @@ if add_languages('cpp', required: llvmopt, native: false) llvm_binpath = llvm.get_variable(configtool: 'bindir') ccache = find_program('ccache', native: true, required: false) - clang = find_program(llvm_binpath / 'clang', required: true) + + # Some distros put LLVM and clang in different paths, so fallback to + # find via PATH, too. + clang = find_program(llvm_binpath / 'clang', 'clang', required: true) endif elif llvmopt.auto() message('llvm requires a C++ compiler')