Changeset View
Changeset View
Standalone View
Standalone View
clang/test/lit.cfg.py
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | ToolSubst('%clang_extdef_map', command=FindTool( | ||||
'clang-extdef-mapping'), unresolved='ignore'), | 'clang-extdef-mapping'), unresolved='ignore'), | ||||
ToolSubst('%clang_dxc', command=config.clang, | ToolSubst('%clang_dxc', command=config.clang, | ||||
extra_args=['--driver-mode=dxc']), | extra_args=['--driver-mode=dxc']), | ||||
] | ] | ||||
if config.clang_examples: | if config.clang_examples: | ||||
config.available_features.add('examples') | config.available_features.add('examples') | ||||
if config.llvm_examples: | |||||
config.available_features.add('llvm-examples') | |||||
if config.linked_bye_extension: | |||||
config.substitutions.append(('%loadbyeplugin', '')) | |||||
else: | |||||
config.substitutions.append(('%loadbyeplugin', | |||||
'-fpass-plugin={}/Bye{}' | |||||
.format(config.llvm_shlib_dir, | |||||
config.llvm_plugin_ext))) | |||||
def have_host_jit_feature_support(feature_name): | def have_host_jit_feature_support(feature_name): | ||||
clang_repl_exe = lit.util.which('clang-repl', config.clang_tools_dir) | clang_repl_exe = lit.util.which('clang-repl', config.clang_tools_dir) | ||||
if not clang_repl_exe: | if not clang_repl_exe: | ||||
return False | return False | ||||
try: | try: | ||||
clang_repl_cmd = subprocess.Popen( | clang_repl_cmd = subprocess.Popen( | ||||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |