mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Header generator: Enable to find latest Clang
This also allows to install `libclang1` instead of `libclang1-dev` as one of the build dependencies on Ubuntu/Debian. Signed-off-by: Christian Blichmann <cblichmann@google.com>
This commit is contained in:
parent
f2e4817509
commit
f9b4083dee
|
@ -40,11 +40,9 @@ def _init_libclang():
|
||||||
# Try to find libclang in the standard location and a few versioned paths
|
# Try to find libclang in the standard location and a few versioned paths
|
||||||
# that are used on Debian (and others). If LD_LIBRARY_PATH is set, it is
|
# that are used on Debian (and others). If LD_LIBRARY_PATH is set, it is
|
||||||
# used as well.
|
# used as well.
|
||||||
for lib in [
|
for version in ['', '12', '11', '10', '9', '8', '7', '6.0', '5.0', '4.0']:
|
||||||
'clang', 'clang-9', 'clang-8', 'clang-7', 'clang-6.0', 'clang-5.0',
|
libname = 'clang' + ('-' + version if version != '' else '')
|
||||||
'clang-4.0'
|
libclang = util.find_library(libname)
|
||||||
]:
|
|
||||||
libclang = util.find_library(lib)
|
|
||||||
if libclang:
|
if libclang:
|
||||||
cindex.Config.set_library_file(libclang)
|
cindex.Config.set_library_file(libclang)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue
Block a user