This used to work, but since I updated to latest SVN version of clang,
it no longer works:
$ /home/edwin/llvm-svn/llvm/tools/clang/utils/ccc p.c
Traceback (most recent call last):
File "/home/edwin/llvm-svn/llvm/tools/clang/utils/ccc", line 197, in ?
main(sys.argv[1:])
File "/home/edwin/llvm-svn/llvm/tools/clang/utils/ccc", line 186, in main
if extension(file) != "o":
File "/home/edwin/llvm-svn/llvm/tools/clang/utils/ccc", line 40, in
extension
return path.rpartition(".")[2]
AttributeError: 'str' object has no attribute 'rpartition'
$ python -V
Python 2.4.4
$ python2.5 -V
Python 2.5.2a0
I had to change the ccc script to use python2.5 explicitly:
#!/usr/bin/env python2.5
Best regards,
--Edwin
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev