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