set rpath for mac when --use-system-clang

This commit is contained in:
Joel Hock 2017-12-17 21:22:07 -06:00 committed by Jacob Dufault
parent 9fd35db034
commit 934c20312a

View File

@ -242,6 +242,9 @@ def build(bld):
# Fallback for windows # Fallback for windows
default_resource_directory = os.path.join(os.getcwd(), 'clang_resource_dir') default_resource_directory = os.path.join(os.getcwd(), 'clang_resource_dir')
if bld.env['use_system_clang']: if bld.env['use_system_clang']:
if sys.platform == 'darwin':
rpath = bld.env['LIBPATH_clang'][0]
else:
rpath = [] rpath = []
devnull = '/dev/null' if sys.platform != 'win32' else 'NUL' devnull = '/dev/null' if sys.platform != 'win32' else 'NUL'