Lines Matching refs:config
19 config.name = 'Clang'
25 config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
28 config.suffixes = ['.c', '.cpp', '.i', '.cppm', '.m', '.mm', '.cu',
34 config.excludes = ['Inputs', 'CMakeLists.txt', 'README.txt', 'LICENSE.txt', 'debuginfo-tests']
37 config.test_source_root = os.path.dirname(__file__)
40 config.test_exec_root = os.path.join(config.clang_obj_root, 'test')
46 config.substitutions.append(
47 ('%src_include_dir', config.clang_src_dir + '/include'))
49 config.substitutions.append(
50 ('%target_triple', config.target_triple))
56 config.substitutions.append(('%PATH%', config.environment['PATH']))
63 tool_dirs = [config.clang_tools_dir, config.llvm_tools_dir]
72 if config.clang_examples:
73 config.available_features.add('examples')
76 if config.clang_staticanalyzer:
77 config.available_features.add('staticanalyzer')
80 if config.clang_staticanalyzer_z3 == '1':
81 config.available_features.add('z3')
84 config.test_source_root, "Analysis", "check-analyzer-fixit.py")
85 config.substitutions.append(
87 '"%s" %s' % (config.python_executable, check_analyzer_fixit_path)))
91 config.substitutions.append(
92 ('%hmaptool', "'%s' %s" % (config.python_executable,
93 os.path.join(config.clang_tools_dir, 'hmaptool'))))
97 if config.has_plugins and config.llvm_plugin_ext:
98 config.available_features.add('plugins')
102 if config.clang_default_cxx_stdlib != '':
103 config.available_features.add('default-cxx-stdlib-set')
107 config.available_features.add('crash-recovery')
110 if config.enable_experimental_new_pass_manager:
111 config.available_features.add('experimental-new-pass-manager')
115 config.available_features.add('ansi-escape-sequences')
120 config.available_features.add('utf8-capable-terminal')
125 config.available_features.add('libgcc')
132 prefix='case-test', dir=config.test_exec_root)
144 config.available_features.add('case-insensitive-filesystem')
148 config.available_features.add('dev-fd-fs')
151 if re.match(r'.*-(windows-msvc)$', config.target_triple):
152 config.available_features.add('ms-sdk')
155 if not re.match(r'^x86_64.*-(windows-msvc|windows-gnu)$', config.target_triple):
156 config.available_features.add('LP64')
159 if not re.match(r'.*-(cygwin)$', config.target_triple):
160 config.available_features.add('clang-driver')
163 if re.match(r'^arm64(e)?-apple-(macos|darwin)', config.target_triple):
164 config.available_features.add('apple-silicon-mac')
169 config.available_features.add('can-remove-opened-file')
173 if (any(config.target_triple.startswith(x) for x in known_arches)):
174 config.available_features.add("clang-target-64-bits")
192 config.available_features.add('xmllint')
194 if config.enable_backtrace:
195 config.available_features.add('backtrace')
197 if config.enable_threads:
198 config.available_features.add('thread_support')
203 config.available_features.add('console')
205 lit.util.usePlatformSdkOnDarwin(config, lit_config)
206 macOSSDKVersion = lit.util.findPlatformSdkVersionOnMacOS(config, lit_config)
208 config.available_features.add('macos-sdk-' + str(macOSSDKVersion))
211 config.available_features.add('gentoo')
213 if config.enable_shared:
214 config.available_features.add("enable_shared")
217 if config.clang_vendor_uti:
218 config.available_features.add('clang-vendor=' + config.clang_vendor_uti)