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.Dismiss alert
{{ message }}
Repository navigation
When using Apple Clang, --with-lto builds should not check for llvm-ar #87275
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)
Activity
acmorrow commentedon Feb 2, 2021
When building with
--with-lto, an explicit check forllvm-aris performed as part of the configure step. However, Apple does not shipllvm-aras part of Xcode, so when building with Apple Clang this check fails and prevents using--with-lto.However, using the builtin
arseems to work just fine, and it can be selected by passingLLVM_AR=/path/to/artoconfigure. It would be nice to see theconfigurescript updated to know that systemaris sufficient when using Apple Clang on macOS.Please see Homebrew/homebrew-core#70177 for additional background.
ned-deily commentedon May 9, 2021
Thanks for the PR. I am looking at this area currently.
miss-islington commentedon May 25, 2021
New changeset 25a9cf1 by Miss Islington (bot) in branch '3.10':
bpo-43109: Fix --with-lto configure option on macOS (GH-26341)
25a9cf1
ned-deily commentedon May 25, 2021
New changeset 3af61a7 by Miss Islington (bot) in branch '3.9':
bpo-43109: Fix --with-lto configure option on macOS (GH-26341) (GH-26343)
3af61a7
miss-islington commentedon May 25, 2021
New changeset ddc503c by Miss Islington (bot) in branch '3.10':
bpo-43109: configure doc: LTO requires "ar" on macOS (GH-26349)
ddc503c
vstinner commentedon May 25, 2021
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
commit 63f17c2 (HEAD -> main, upstream/main)
Author: Victor Stinner <vstinner@python.org>
Date: Tue May 25 12:25:22 2021 +0200
Commits in 3.10 branch:
commit ddc503c (upstream/3.10, 3.10)
Author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Date: Tue May 25 03:56:37 2021 -0700