[llvm] r283816 - Fix llvm-lit.in corresponding to r283710.
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 10 16:50:35 PDT 2016
I don’t think this fix works. I tested it and it had no effect for me. I think I fixed in r283818 though, by bring back the export of main in the lit package.
On October 10, 2016 at 4:11:53 PM, NAKAMURA Takumi via llvm-commits (llvm-commits at lists.llvm.org) wrote:
Author: chapuni
Date: Mon Oct 10 18:02:42 2016
New Revision: 283816
URL: http://llvm.org/viewvc/llvm-project?rev=283816&view=rev
Log:
Fix llvm-lit.in corresponding to r283710.
Traceback (most recent call last):
File "bin/llvm-lit", line 44, in <module>
lit.main(builtin_parameters)
AttributeError: 'module' object has no attribute 'main'
Suggested by Artem Belevich.
Modified:
llvm/trunk/utils/llvm-lit/llvm-lit.in
Modified: llvm/trunk/utils/llvm-lit/llvm-lit.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-lit/llvm-lit.in?rev=283816&r1=283815&r2=283816&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-lit/llvm-lit.in (original)
+++ llvm/trunk/utils/llvm-lit/llvm-lit.in Mon Oct 10 18:02:42 2016
@@ -40,5 +40,5 @@ if os.path.exists(compilerrt_obj_root):
os.path.join(compilerrt_obj_root, 'test')
if __name__=='__main__':
- import lit
- lit.main(builtin_parameters)
+ from lit.main import main
+ main(builtin_parameters)
_______________________________________________
llvm-commits mailing list
llvm-commits at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161010/e3b34959/attachment.html>
More information about the llvm-commits
mailing list