Lines Matching full:config

16 config.test_format = lit.formats.ShTest(execute_external)
18 config.available_features.add('shell')
21 compiler_path = getattr(config, 'clang', None)
25 compiler_id = getattr(config, 'compiler_id', None)
28 config.cxx_mode_flags = ["--driver-mode=g++"]
30 config.cxx_mode_flags = []
33 config.debug_info_flags = ["-gline-tables-only"]
35 config.debug_info_flags.append("-gcodeview")
37 config.cxx_mode_flags = ["-x c++"]
38 config.debug_info_flags = ["-g"]
42 config.available_features.add(compiler_id)
60 if name in config.environment:
61 del config.environment[name]
64 llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
66 lit_config.fatal("Invalid llvm_tools_dir config attribute: %r" % llvm_tools_dir)
67 path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
68 config.environment['PATH'] = path
72 if platform.system() == 'Windows' and '-win' in config.target_triple:
73 config.environment['LIB'] = os.environ['LIB']
75 if re.match(r'^x86_64.*-linux', config.target_triple):
76 config.available_features.add("x86_64-linux")
80 config.substitutions.append(
82 instead define '%clangXXX' substitution in lit config. ***\n\n""") )
85 config.substitutions.append( ('%run', config.emulator) )
88 config.substitutions.append( ('CHECK-%os', ("CHECK-" + config.host_os)))
90 if config.host_os == 'Windows':
95 config.expect_crash = "not KillTheDoctor "
97 config.expect_crash = "not --crash "
99 config.substitutions.append( ("%expect_crash ", config.expect_crash) )
101 target_arch = getattr(config, 'target_arch', None)
103 config.available_features.add(target_arch + '-target-arch')
105 config.available_features.add('x86-target-arch')
107 compiler_rt_debug = getattr(config, 'compiler_rt_debug', False)
109 config.available_features.add('compiler-rt-optimized')
111 sanitizer_can_use_cxxabi = getattr(config, 'sanitizer_can_use_cxxabi', True)
113 config.available_features.add('cxxabi')
115 if config.has_lld:
116 config.available_features.add('lld')
118 if config.can_symbolize:
119 config.available_features.add('can-symbolize')
121 lit.util.usePlatformSdkOnDarwin(config, lit_config)
123 if config.host_os == 'Darwin':
128 config.available_features.add('osx-autointerception')
129 config.available_features.add('osx-ld64-live_support')
135 config.available_features.add('osx-no-ld64-live_support')
141 config.available_features.add("has_sancovcc")
142 config.substitutions.append( ("%sancovcc ", sancovcc_path) )
145 return os.path.exists(os.path.join(config.llvm_shlib_dir, 'libLTO.dylib'))
148 if not os.path.exists(os.path.join(config.llvm_shlib_dir, 'LLVMgold.so')):
151 ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE)
161 return os.path.exists(os.path.join(config.llvm_tools_dir, 'lld-link.exe'))
163 if config.host_os == 'Darwin' and is_darwin_lto_supported():
164 config.lto_supported = True
165 config.lto_launch = ["env", "DYLD_LIBRARY_PATH=" + config.llvm_shlib_dir]
166 config.lto_flags = []
167 elif config.host_os == 'Linux' and is_linux_lto_supported():
168 config.lto_supported = True
169 config.lto_launch = []
170 config.lto_flags = ["-fuse-ld=gold"]
171 elif config.host_os == 'Windows' and is_windows_lto_supported():
172 config.lto_supported = True
173 config.lto_launch = []
174 config.lto_flags = ["-fuse-ld=lld"]
176 config.lto_supported = False
178 # Ask llvm-config about assertion mode.
181 [os.path.join(config.llvm_tools_dir, 'llvm-config'), '--assertion-mode'],
183 env=config.environment)
185 print("Could not find llvm-config in " + llvm_tools_dir)
189 config.available_features.add('asserts')
195 config.test_retry_attempts = 2