mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
change set_path to set_file
This commit is contained in:
parent
00c462d149
commit
9358e30d2a
@ -258,8 +258,8 @@ def read_args(args):
|
|||||||
# versions and distributions. LLVM switched to a monolithical setup
|
# versions and distributions. LLVM switched to a monolithical setup
|
||||||
# that includes everything under /usr/lib/llvm{version_number}/
|
# that includes everything under /usr/lib/llvm{version_number}/
|
||||||
# We therefore glob for the library and select the highest version
|
# We therefore glob for the library and select the highest version
|
||||||
library_path = sorted(glob("/usr/lib/llvm-*/lib/"), reversed=True)[0]
|
library_file = sorted(glob("/usr/lib/llvm-*/lib/libclang.so"), reversed=True)[0]
|
||||||
cindex.Config.set_library_path(library_path)
|
cindex.Config.set_library_file(library_file)
|
||||||
|
|
||||||
# clang doesn't find its own base includes by default on Linux,
|
# clang doesn't find its own base includes by default on Linux,
|
||||||
# but different distros install them in different paths.
|
# but different distros install them in different paths.
|
||||||
|
Loading…
Reference in New Issue
Block a user