Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support using clang #2065

Open
seigeweapon opened this issue Apr 12, 2020 · 7 comments
Open

support using clang #2065

seigeweapon opened this issue Apr 12, 2020 · 7 comments

Comments

@seigeweapon
Copy link

Clang is not in the list of allowed compilers when executed:
python setup.py build --help-compiler

--compiler=bcpp Borland C++ Compiler
--compiler=cygwin Cygwin port of GNU C Compiler for Win32
--compiler=mingw32 Mingw32 port of GNU C Compiler for Win32
--compiler=msvc Microsoft Visual C++
--compiler=unix standard UNIX-style compiler

Is there plan to add clang?

@jaraco jaraco changed the title setuptools to support using clang support using clang May 13, 2020
@jaraco
Copy link
Member

jaraco commented May 13, 2020

No plans. I'm surprised there's not already support for clang somehow. Behavior is entangled with distutils in stdlib, so I don't know what it would take. Happy for someone to evaluate and develop a plan.

@wkschwartz
Copy link

Can you do the following?

$ CC="clang" python setup.py build

@zufuliu
Copy link

zufuliu commented Jul 14, 2020

@isuruf has a PR for using clang-cl at python/cpython#18371, but since distutils in stdlib is going to be removed (see https://bugs.python.org/issue41282), don't known where is should go.

@pganssle
Copy link
Member

It should go here.

@jaraco
Copy link
Member

jaraco commented Jul 15, 2020

If the patch can be applied to distutils, please submit it against pypa/distutils, whereafter it will be incorporated here directly.

@isuruf
Copy link
Contributor

isuruf commented Jul 15, 2020

It's not enough to have distutils support. CPython headers need a small change which is fixed in python/cpython#18371

@isuruf
Copy link
Contributor

isuruf commented Jul 15, 2020

pypa/distutils#7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants