File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change 1- clang <= 14
1+ libclang
22hawkmoth
33sphinx
44sphinx_rtd_theme
Original file line number Diff line number Diff line change 1010# add these directories to sys.path here. If the directory is relative to the
1111# documentation root, use os.path.abspath to make it absolute, like shown here.
1212#
13- from glob import glob
1413import os
15- import sys
1614from hawkmoth .util import readthedocs
1715from hawkmoth .util import compiler
18- from clang .cindex import Config as clang_config
1916
2017# -- Project information -----------------------------------------------------
2118
6259hawkmoth_clang = compiler .get_include_args ()
6360# we need build to get version.h
6461hawkmoth_clang .append (f"-I{ os .path .abspath ('../../build' )} " )
65- if sys .platform == 'darwin' :
66- lib_search_dirs = [
67- '/usr/lib' ,
68- '/usr/local/lib' ,
69- '/Library/Developer/CommandLineTools/usr/lib' ,
70- ]
71- elif sys .platform == 'windows' :
72- lib_search_dirs = []
73- else :
74- # we are nailed to clang-14 by readthedocs, so we must look in llvm-14
75- # for libclang.so
76- lib_search_dirs = [
77- '/usr/lib' ,
78- '/usr/local/lib' ,
79- ] + glob ('/usr/lib/llvm-14/lib' )
80- for lib_dir in lib_search_dirs :
81- clang_config .set_library_path (lib_dir )
You can’t perform that action at this time.
0 commit comments