Diff compiler-rt-19.1.7 with a compiler-rt-21.1.6

/usr/portage/llvm-runtimes/compiler-rt/compiler-rt-21.1.6.ebuild 2025-11-26 18:18:03.453348157 +0300
12 12

  
13 13
LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
14 14
SLOT="${LLVM_MAJOR}"
15
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc64 ~riscv x86 ~amd64-linux ~arm64-macos ~ppc-macos ~x64-macos"
15
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~arm64-macos ~ppc-macos ~x64-macos"
16 16
IUSE="+abi_x86_32 abi_x86_64 +atomic-builtins +clang debug test"
17 17
REQUIRED_USE="atomic-builtins? ( clang )"
18 18
RESTRICT="!test? ( test ) !clang? ( test )"
......
21 21
	llvm-core/llvm:${LLVM_MAJOR}
22 22
"
23 23
BDEPEND="
24
	clang? ( llvm-core/clang:${LLVM_MAJOR} )
24
	clang? (
25
		llvm-core/clang:${LLVM_MAJOR}
26
		llvm-core/clang-linker-config:${LLVM_MAJOR}
27
	)
25 28
	test? (
26 29
		$(python_gen_any_dep ">=dev-python/lit-15[\${PYTHON_USEDEP}]")
27 30
		=llvm-core/clang-${LLVM_VERSION}*:${LLVM_MAJOR}
......
31 34
	)
32 35
"
33 36

  
34
LLVM_COMPONENTS=( compiler-rt cmake llvm/cmake )
37
LLVM_COMPONENTS=( compiler-rt cmake llvm/cmake third-party/siphash )
35 38
LLVM_TEST_COMPONENTS=( llvm/include/llvm/TargetParser )
36 39
llvm.org_set_globals
37 40

  
......
78 81
		# Only do this conditionally to allow overriding with
79 82
		# e.g. CC=clang-13 in case of breakage
80 83
		if ! tc-is-clang ; then
81
			local -x CC=${CHOST}-clang
82
			local -x CXX=${CHOST}-clang++
84
			local -x CC=${CHOST}-clang-${LLVM_MAJOR}
85
			local -x CXX=${CHOST}-clang++-${LLVM_MAJOR}
83 86
		fi
84 87

  
85 88
		strip-unsupported-flags
89

  
90
		# The full clang configuration might not be ready yet. Given that compiler-rt
91
		# require runtime, use only the linker configuration.
92
		local flags=(
93
			--config="${ESYSROOT}"/etc/clang/"${LLVM_MAJOR}"/gentoo-linker.cfg
94
		)
95
		local -x CFLAGS="${CFLAGS} ${flags[@]}"
96
		local -x CXXFLAGS="${CXXFLAGS} ${flags[@]}"
97
		local -x LDFLAGS="${LDFLAGS} ${flags[@]}"
86 98
	fi
87 99

  
88 100
	if ! is_crosspkg && ! test_compiler ; then
Thank you!