You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
acmorrowmannequin opened this issue
Feb 2, 2021
· 6 comments
Assignees
Labels
3.9only security fixes3.10only security fixes3.11bug and security fixesbuildThe build process and cross-buildOS-mactype-featureA feature request or enhancement
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/ned-deily'closed_at=<Date2021-05-25.10:58:37.915>created_at=<Date2021-02-02.22:52:49.269>labels= ['OS-mac', 'build', '3.9', '3.10', '3.11', 'type-feature']
title='When using Apple Clang, --with-lto builds should not check for llvm-ar'updated_at=<Date2021-05-25.10:58:37.914>user='https://github.com/acmorrow'
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.
Thanks to the bug report Andrew C. Morrow, it's now fixed.
Commits in main:
commit 59acfd4
Author: Ned Deily <nad@python.org>
Date: Mon May 24 23:00:04 2021 -0400
bpo-43109: Fix --with-lto configure option on macOS (GH-26341)
Allow --with-lto configure option to work with Apple-supplied Xcode or
Command Line Tools which do not provide llvm-ar.
commit 63f17c2 (HEAD -> main, upstream/main)
Author: Victor Stinner <vstinner@python.org>
Date: Tue May 25 12:25:22 2021 +0200
bpo-43109: configure doc: LTO requires "ar" on macOS (GH-26349)
3.9only security fixes3.10only security fixes3.11bug and security fixesbuildThe build process and cross-buildOS-mactype-featureA feature request or enhancement
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: