Skip to content

Commit 08b23af

Browse files
svenvhAlexeySotkin
authored andcommitted
lit: Fix DebugInfo test tools warnings
Only substitute DebugInfo-test-specific tools such as llvm-readelf when running the DebugInfo tests. Otherwise these tools may not be available, causing llvm-lit to warn about being unable to find the tools.
1 parent 15aa73e commit 08b23af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/lit.cfg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747

4848
tool_dirs = [config.llvm_tools_dir, config.llvm_spirv_dir]
4949

50-
tools = ['llc', 'llvm-as', 'llvm-dis', 'llvm-dwarfdump', 'llvm-objdump', 'llvm-readelf', 'llvm-readobj', 'llvm-spirv', 'not']
50+
tools = ['llvm-as', 'llvm-dis', 'llvm-spirv', 'not']
51+
if not config.skip_spirv_debug_info_tests:
52+
tools.extend(['llc', 'llvm-dwarfdump', 'llvm-objdump', 'llvm-readelf', 'llvm-readobj'])
5153

5254
llvm_config.add_tool_substitutions(tools, tool_dirs)
5355

0 commit comments

Comments
 (0)