From ad07d08c8dd1847a3bd02ae460446eba24ca2269 Mon Sep 17 00:00:00 2001 From: Joey Gouly Date: Tue, 14 Jan 2014 22:52:24 +0000 Subject: [PATCH] Add the lld root to llvm-lit, so llvm-lit can be used to run lld tests individually. llvm-svn: 199264 --- llvm/utils/llvm-lit/llvm-lit.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/utils/llvm-lit/llvm-lit.in b/llvm/utils/llvm-lit/llvm-lit.in index 6ee12185a3bf..1455b4e037f5 100755 --- a/llvm/utils/llvm-lit/llvm-lit.in +++ b/llvm/utils/llvm-lit/llvm-lit.in @@ -29,6 +29,11 @@ if os.path.exists(clang_obj_root): builtin_parameters['clang_tools_extra_site_config'] = \ os.path.join(clang_tools_extra_obj_root, 'test', 'lit.site.cfg') +lld_obj_root = os.path.join(llvm_obj_root, 'projects', 'lld') +if os.path.exists(lld_obj_root): + builtin_parameters['lld_site_config'] = \ + os.path.join(lld_obj_root, 'test', 'lit.site.cfg') + if __name__=='__main__': import lit lit.main(builtin_parameters)