Changeset View
Changeset View
Standalone View
Standalone View
lld/test/lit.cfg.py
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | |||||
if config.has_plugins: | if config.has_plugins: | ||||
config.available_features.add('plugins') | config.available_features.add('plugins') | ||||
if config.build_examples: | if config.build_examples: | ||||
config.available_features.add('examples') | config.available_features.add('examples') | ||||
if config.linked_bye_extension: | if config.linked_bye_extension: | ||||
config.substitutions.append(('%loadbye', '')) | |||||
config.substitutions.append(('%loadnewpmbye', '')) | config.substitutions.append(('%loadnewpmbye', '')) | ||||
else: | else: | ||||
config.substitutions.append(('%loadbye', | |||||
'-load={}/Bye{}'.format(config.llvm_shlib_dir, | |||||
config.llvm_shlib_ext))) | |||||
config.substitutions.append(('%loadnewpmbye', | config.substitutions.append(('%loadnewpmbye', | ||||
'-load-pass-plugin={}/Bye{}' | '-load-pass-plugin={}/Bye{}' | ||||
.format(config.llvm_shlib_dir, | .format(config.llvm_shlib_dir, | ||||
config.llvm_shlib_ext))) | config.llvm_shlib_ext))) | ||||
tar_executable = lit.util.which('tar', config.environment['PATH']) | tar_executable = lit.util.which('tar', config.environment['PATH']) | ||||
if tar_executable: | if tar_executable: | ||||
env = os.environ | env = os.environ | ||||
Show All 13 Lines |