llvm-runtimes/clang-rtlib-config - 18 (gentoo)

Search

Install

Install this version:

emerge -a =llvm-runtimes/clang-rtlib-config-18

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =llvm-runtimes/clang-rtlib-config-18

Or alternatively:

emerge --autounmask-write -a =llvm-runtimes/clang-rtlib-config-18

Package Information

Description:
Default rtlib configuration for clang
Homepage:
https://clang.llvm.org/
License:
public-domain

Ebuild Details

Version EAPI Keywords Slot
18 8 amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~arm64-macos ~x64-macos 18
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Default rtlib configuration for clang"
HOMEPAGE="https://clang.llvm.org/"
S=${WORKDIR}

LICENSE="public-domain"
SLOT="${PV}"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~arm64-macos ~x64-macos"
IUSE="default-compiler-rt +abi_x86_32 abi_x86_64"

RDEPEND="
	default-compiler-rt? ( llvm-runtimes/compiler-rt:${SLOT}[abi_x86_32(+)?,abi_x86_64(+)?] )
	!default-compiler-rt? ( sys-devel/gcc )
"

src_install() {
	insinto "/etc/clang/${SLOT}"
	newins - gentoo-rtlib.cfg <<-EOF
		# This file is initially generated by ${CATEGORY}/${PN}.
		# It is used to control the default rtlib used by clang.

		--rtlib=$(usex default-compiler-rt compiler-rt libgcc)
	EOF
}

USE Flags

Manage flags for this package: euse -i <flag> -p llvm-runtimes/clang-rtlib-config | euse -E <flag> -p llvm-runtimes/clang-rtlib-config | euse -D <flag> -p llvm-runtimes/clang-rtlib-config

Global/Standard Flags

USE_EXPAND: abi_x86

abi_x86_32
Default: Enabled (+)

Dependencies

RDEPEND

	default-compiler-rt? ( llvm-runtimes/compiler-rt:18[abi_x86_32(+)?,abi_x86_64(+)?] )
	!default-compiler-rt? ( sys-devel/gcc )