Index: scripts/slave/compile.py |
diff --git a/scripts/slave/compile.py b/scripts/slave/compile.py |
index d3783d36d92bc01dd7cac82ea5a5e3902775d372..ed12e9c8eb1746f62f01980dd79aeedddcdd3be9 100755 |
--- a/scripts/slave/compile.py |
+++ b/scripts/slave/compile.py |
@@ -939,6 +939,13 @@ def main_ninja(options, args): |
command = ['ninja', '-w', 'dupbuild=err', '-C', options.target_output_dir] |
+ if chromium_utils.IsLinux() and options.compiler in ('clang', 'goma-clang'): |
+ clang_lib_dir = os.path.abspath(os.path.join(options.src_dir, |
+ 'third_party', 'llvm-build', 'Release+Asserts', 'lib')) |
+ if not 'LD_LIBRARY_PATH' in env: |
+ env['LD_LIBRARY_PATH'] = '' |
+ env['LD_LIBRARY_PATH'] += clang_lib_dir + ':' |
+ |
# HACK(yyanagisawa): update environment files on |env| update. |
# For compiling on Windows, environment in environment files are used. |
# It means even if enviroment such as GOMA_DISABLED is updated in |