[ELF] Add llvm-readelf to the lit tool substitutions
authorAlexander Richardson <arichardson.kde@gmail.com>
Tue, 27 Feb 2018 22:01:02 +0000 (22:01 +0000)
committerAlexander Richardson <arichardson.kde@gmail.com>
Tue, 27 Feb 2018 22:01:02 +0000 (22:01 +0000)
Summary:
Some of the tests invoke llvm-readelf. This currently appears to work
probably because the LLVM binary directory is included in $PATH. However,
this is quite fragile so let's just make lit expand the full path.

Reviewers: ruiu, espindola

Reviewed By: ruiu

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D43827

llvm-svn: 326257

lld/test/lit.cfg.py

index 97fcaac218e65f031352242213d8fea1f771f063..05ebc23869a3e1c8f2d798fddfaefb407fcc9a48 100644 (file)
@@ -39,8 +39,8 @@ llvm_config.use_default_substitutions()
 llvm_config.use_lld()
 
 tool_patterns = [
-    'llc', 'llvm-as', 'llvm-mc', 'llvm-nm',
-    'llvm-objdump', 'llvm-pdbutil', 'llvm-readobj', 'obj2yaml', 'yaml2obj']
+    'llc', 'llvm-as', 'llvm-mc', 'llvm-nm', 'llvm-objdump', 'llvm-pdbutil',
+    'llvm-readelf', 'llvm-readobj', 'obj2yaml', 'yaml2obj']
 
 llvm_config.add_tool_substitutions(tool_patterns)