[New-bugs-announce] [issue44093] compiler detection on macOS seems to be incorrect
report at bugs.python.org
Sun May 9 23:01:36 EDT 2021
New submission from Rishav Kundu <rishav.kundu98 at gmail.com>:
On macOS devices, the configure script seems to always detect gcc, even though Apple does not ship with gcc — the gcc binary is simply a wrapper around clang (probably llvm-gcc?)
I believe the issue is with these lines.
Concretely, gcc —-version produces this on my computer:
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1188.8.131.52)
Thread model: posix
Perhaps an additional check for “clang” would solve the issue.
title: compiler detection on macOS seems to be incorrect
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce