Lines Matching +full:llvm +full:- +full:config
1 # -*- Python -*-
10 config.name = 'LLVM-Unit'
13 config.suffixes = []
16 config.is_early = True
20 llvm_obj_root = getattr(config, 'llvm_obj_root', None)
22 config.test_exec_root = os.path.join(llvm_obj_root, 'unittests')
23 config.test_source_root = config.test_exec_root
26 llvm_build_mode = getattr(config, 'llvm_build_mode', "Debug")
27 config.test_format = lit.formats.GoogleTest(llvm_build_mode, 'Tests')
32 config.environment['TMP'] = os.environ['TMP']
34 config.environment['TEMP'] = os.environ['TEMP']
39 config.environment[symbolizer] = os.environ[symbolizer]
42 if sys.platform in ['win32', 'cygwin'] and os.path.isdir(config.shlibdir):
43 config.environment['PATH'] = os.path.pathsep.join((
44 config.shlibdir, config.environment['PATH']))
49 if config.test_exec_root is None:
53 # out-of-tree build situation).
58 lit_config.load_config(config, site_cfg)
61 # Try to detect the situation where we are using an out-of-tree build by
62 # looking for 'llvm-config'.
69 llvm_config = lit.util.which('llvm-config', config.environment['PATH'])
74 llvm_src_root = lit.util.capture(['llvm-config', '--src-root']).strip()
75 llvm_obj_root = lit.util.capture(['llvm-config', '--obj-root']).strip()
88 lit_config.note('using out-of-tree build at %r' % llvm_obj_root)
89 lit_config.load_config(config, site_cfg)