Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
00c462d1
Commit
00c462d1
authored
Apr 15, 2020
by
MRocholl
Committed by
Wenzel Jakob
Apr 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
find library path to libclang.so via glob command in /usr/lib/llvm-* and set it
parent
9ed8b440
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
tools/mkdoc.py
+7
-0
No files found.
tools/mkdoc.py
View file @
00c462d1
...
@@ -254,6 +254,13 @@ def read_args(args):
...
@@ -254,6 +254,13 @@ def read_args(args):
parameters
.
append
(
'-isysroot'
)
parameters
.
append
(
'-isysroot'
)
parameters
.
append
(
sysroot_dir
)
parameters
.
append
(
sysroot_dir
)
elif
platform
.
system
()
==
'Linux'
:
elif
platform
.
system
()
==
'Linux'
:
# cython.util.find_library does not find `libclang` for all clang
# 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
)
# 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.
# Try to autodetect, preferring the highest numbered version.
# Try to autodetect, preferring the highest numbered version.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment