llvm-runtimes/libatomic-stub: use tc-getAR

Nothing guarantees AR is set.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-11-05 16:47:15 +00:00
parent 2b3a5b4caa
commit 9b854af3d8
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -3,6 +3,8 @@
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Stub library which allows compiler-rt to replace libatomic"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
S="${WORKDIR}"
@ -20,6 +22,6 @@ src_install() {
# Create an empty library, so that -latomic will not fail.
# The atomic routines will be provided implicitly by the compiler-rt
# builtins library.
${AR} rc libatomic.a || die
$(tc-getAR) rc libatomic.a || die
dolib.a libatomic.a
}