消息 [393346]
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.
https://github.com/python/cpython/blob/8e8307d70bb9dc18cfeeed3277c076309b27515e/configure.ac#L630-L635
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-1205.0.22.9)
Target: x86_64-apple-darwin20.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Perhaps an additional check for “clang” would solve the issue. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2021-05-10 03:01:36 | xrisk | 修改 | recipients:
+ xrisk |
| 2021-05-10 03:01:36 | xrisk | 修改 | messageid: <1620615696.74.0.363750017848.issue44093@roundup.psfhosted.org> |
| 2021-05-10 03:01:36 | xrisk | 链接 | issue44093 messages |
| 2021-05-10 03:01:36 | xrisk | 创建 | |
|