-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
detecting clang in configure.ac #110034
Comments
It seems to me this is a build system enhancement rather than a bug-fix. It also reminds me that we need a modern build system for CPython. |
I can highly recommend re-evaluating your build system every ten years, or whenever the number of developers on the project who are deeply familiar with it dips below 2%. I can try to get this fixed in time for 3.13, but I'm afraid I don't have the skill or knowledge to replace the entire build system ;) |
Sure, feel free to take this on; I'll be automatically requested for review for any
Replacing the build system will require at least one PEP :) See prior discussions:
|
I've now read all of these discussions, and am convinced that this will definitely happen in the next year or three, or failing that, within the next release or three. As an aside, PostgreSQL recently migrated to meson. That is a pretty big accomplishment for such a big and old project. |
Just injecting: Plus one vote for a newer build system, the CPython Conan recipe is rather complicated (mainly due to the Windows build). I'd be willing to give a CMake build system a shot if such a contribution would be welcome. (Conan recipe, for those curious: https://github.com/conan-io/conan-center-index/blob/master/recipes/cpython/all/conanfile.py) |
Duplicate of #96398. Let's continue the discussion over there. |
Bug report
Bug description:
There are several attempts in configure.ac to detect what the compiler we're dealing with actually is:
or this,
We then have a bunch of tests against
$CC
:(most BSDs patch this code to say
*clang*|cc)
)etc…
For gcc we actually have a special variable,
$GCC
, except it doesn't seem to reliably work:How to fix this?
autoconf (2.71?) seems to automatically detect GCC, setting a convenient
$GCC
variable. For clang, we can either reuse the$cc_is_clang
code, moving it just afterAC_PROG_CC
, setting a$CLANG
variable, or reuse the code that sets$ac_cv_cc_name
, again, maybe setting a $CLANG variable for convenience.CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
The text was updated successfully, but these errors were encountered: