mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
set rpath for mac when --use-system-clang
This commit is contained in:
parent
9fd35db034
commit
934c20312a
5
wscript
5
wscript
@ -242,7 +242,10 @@ def build(bld):
|
||||
# Fallback for windows
|
||||
default_resource_directory = os.path.join(os.getcwd(), 'clang_resource_dir')
|
||||
if bld.env['use_system_clang']:
|
||||
rpath = []
|
||||
if sys.platform == 'darwin':
|
||||
rpath = bld.env['LIBPATH_clang'][0]
|
||||
else:
|
||||
rpath = []
|
||||
|
||||
devnull = '/dev/null' if sys.platform != 'win32' else 'NUL'
|
||||
output = subprocess.check_output(['clang', '-###', '-xc', devnull], stderr=subprocess.STDOUT).decode()
|
||||
|
Loading…
Reference in New Issue
Block a user