[New-bugs-announce] [issue43109] When using Apple Clang, --with-lto builds should not check for llvm-ar

Andrew C. Morrow report at bugs.python.org
Tue Feb 2 17:52:49 EST 2021


New submission from Andrew C. Morrow <andrew.c.morrow at gmail.com>:

When building with `--with-lto`, an explicit check for `llvm-ar` is performed as part of the configure step. However, Apple does not ship `llvm-ar` as part of Xcode, so when building with Apple Clang this check fails and prevents using `--with-lto`.

However, using the builtin `ar` seems to work just fine, and it can be selected by passing `LLVM_AR=/path/to/ar` to `configure`. It would be nice to see the `configure` script updated to know that system `ar` is sufficient when using Apple Clang on macOS.

Please see https://github.com/Homebrew/homebrew-core/pull/70177 for additional background.

----------
components: Build
messages: 386174
nosy: acmorrow
priority: normal
severity: normal
status: open
title: When using Apple Clang, --with-lto builds should not check for llvm-ar
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43109>
_______________________________________


More information about the New-bugs-announce mailing list