mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
Only shell out to llvm-config if the configure step found it
This commit is contained in:
parent
71ca687252
commit
0bcf72d0a0
3
wscript
3
wscript
@ -304,9 +304,12 @@ def build(bld):
|
|||||||
lib.append('ncurses')
|
lib.append('ncurses')
|
||||||
|
|
||||||
if bld.env['use_system_clang']:
|
if bld.env['use_system_clang']:
|
||||||
|
if bld.env['llvm_config']:
|
||||||
rpath = str(subprocess.check_output(
|
rpath = str(subprocess.check_output(
|
||||||
[bld.env['llvm_config'], '--libdir'],
|
[bld.env['llvm_config'], '--libdir'],
|
||||||
stderr=subprocess.STDOUT).decode()).strip()
|
stderr=subprocess.STDOUT).decode()).strip()
|
||||||
|
else:
|
||||||
|
rpath = []
|
||||||
|
|
||||||
# Use CXX set by --check-cxx-compiler if it is "clang".
|
# Use CXX set by --check-cxx-compiler if it is "clang".
|
||||||
# See https://github.com/jacobdufault/cquery/issues/237
|
# See https://github.com/jacobdufault/cquery/issues/237
|
||||||
|
Loading…
Reference in New Issue
Block a user