xref: /llvm-project/llvm/utils/lit/tests/Inputs/lld-features/lit.cfg (revision b71edfaa4ec3c998aadb35255ce2f60bba2940b0)
1import lit.formats
2
3config.name = "search-env"
4config.suffixes = [".txt"]
5config.test_format = lit.formats.ShTest()
6config.test_source_root = None
7config.test_exec_root = None
8config.llvm_tools_dir = ""
9import lit.llvm
10
11lit.llvm.initialize(lit_config, config)
12import os.path
13
14curdir = os.path.dirname(__file__)
15# The current directory contains files for each version of LLD, both with and
16# without a .exe extension. The .exe versions will be found on Windows and the
17# ones without will be found on Linux. Note that all files are just empty files,
18# since the test doesn't actually use them.
19lit.llvm.llvm_config.with_environment("PATH", curdir, append_path=True)
20lit.llvm.llvm_config.use_lld(use_installed=True)
21