[Python-ideas] Clang in distutils TAKE 2

Eli Bendersky eliben at gmail.com
Mon Aug 26 01:23:44 CEST 2013


On Sun, Aug 25, 2013 at 3:59 PM, Ryan <rymg19 at gmail.com> wrote:

> I tried Clang, though. It worked for me. Version 3.2.
>

By "tried", do you mean you built a DLL out of a non-trivial Python
extension and the Python interpreter on Windows loaded it successfully?


> Corresponds to GCC 4.2(I think?).
>

What do you mean by "corresponds"?



> It's more mature than it seems. Plus, the errors beat GCC's by about 10x.
> Even with GCC 4.7.
>

I'm a LLVM/Clang committer, so I know how mature it is. What I'm
questioning is current Clang's ability to generate Windows executables that
conform to the MSVC ABI. It's not exactly my domain of expertise, but last
I heard this isn't yet prime-time ready. Maybe you have more up-to-date
information - this is what I'm asking.

Eli





> Eli Bendersky <eliben at gmail.com> wrote:
>>
>>
>>
>>
>> On Sun, Aug 25, 2013 at 12:20 PM, Terry Reedy <tjreedy at udel.edu> wrote:
>>
>>> On 8/25/2013 2:03 PM, Brian Curtin wrote:
>>>
>>>> On Sun, Aug 25, 2013 at 12:50 PM, Ryan <rymg19 at gmail.com> wrote:
>>>>
>>>
>>>  My idea is to put Clang as a compiler for building Python extensions on
>>>>> Windows. i.e. I would be able to do this:
>>>>>
>>>>> C:\my-python-extension> python setup.py build -c clang
>>>>>
>>>>
>>> Do clang/llvm really work on Windows yet? None of these pages even
>>> mention the work.
>>>
>>> https://en.wikipedia.org/wiki/**Clang<https://en.wikipedia.org/wiki/Clang>
>>> http://clang.llvm.org/
>>> http://www.llvm.org/
>>>
>>> and there does not seem to be Windows binaries.
>>>
>>>
>> Do the best of my knowledge, Clang doen't produce MSVC ABI binaries on
>> Windows at this time. Isn't this a requirement for the official Python
>> build?
>>
>> Eli
>>
>>
>> ------------------------------
>>
>> Python-ideas mailing list
>> Python-ideas at python.org
>> http://mail.python.org/mailman/listinfo/python-ideas
>>
>>
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130825/190751c4/attachment.html>


More information about the Python-ideas mailing list