From 9358e30d2afd580acacf969e58cfc7230cd563a7 Mon Sep 17 00:00:00 2001 From: MRocholl Date: Wed, 15 Apr 2020 15:35:38 +0200 Subject: [PATCH] change set_path to set_file --- tools/mkdoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mkdoc.py b/tools/mkdoc.py index 2b429ae1..c9ee7268 100755 --- a/tools/mkdoc.py +++ b/tools/mkdoc.py @@ -258,8 +258,8 @@ def read_args(args): # versions and distributions. LLVM switched to a monolithical setup # that includes everything under /usr/lib/llvm{version_number}/ # We therefore glob for the library and select the highest version - library_path = sorted(glob("/usr/lib/llvm-*/lib/"), reversed=True)[0] - cindex.Config.set_library_path(library_path) + library_file = sorted(glob("/usr/lib/llvm-*/lib/libclang.so"), reversed=True)[0] + cindex.Config.set_library_file(library_file) # clang doesn't find its own base includes by default on Linux, # but different distros install them in different paths.