diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/Manifest.gz | bin | 40347 -> 40351 bytes | |||
-rw-r--r-- | eclass/llvm-utils.eclass | 17 | ||||
-rw-r--r-- | eclass/llvm.org.eclass | 3 |
3 files changed, 19 insertions, 1 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz Binary files differindex 943eb8bb661c..c857a75ac1d6 100644 --- a/eclass/Manifest.gz +++ b/eclass/Manifest.gz diff --git a/eclass/llvm-utils.eclass b/eclass/llvm-utils.eclass index b105e169fbc4..abe8bb7d7d0f 100644 --- a/eclass/llvm-utils.eclass +++ b/eclass/llvm-utils.eclass @@ -1,4 +1,4 @@ -# Copyright 2024 Gentoo Authors +# Copyright 2024-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: llvm-utils.eclass @@ -171,4 +171,19 @@ llvm_prepend_path() { export PATH=${new_path[*]} } +# @FUNCTION: llvm_cmake_use_musl +# @DESCRIPTION: +# Determine whether the given LLVM project should be built with musl +# support. That should be the case if the CTARGET (or CHOST) is a musl +# environment. +# +# If musl should be used, echo "ON", otherwise echo "OFF". +llvm_cmake_use_musl() { + if [[ "${CTARGET:-${CHOST}}" == *-*-*-musl* ]]; then + echo "ON" + else + echo "OFF" + fi +} + fi diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass index f4e2e239d5f8..dd911b0b3560 100644 --- a/eclass/llvm.org.eclass +++ b/eclass/llvm.org.eclass @@ -72,6 +72,9 @@ if [[ -z ${_LLVM_SOURCE_TYPE+1} ]]; then _LLVM_SOURCE_TYPE=snapshot case ${PV} in + 21.0.0_pre20250317) + EGIT_COMMIT=1c3a9a853ce68c3c539e7cab21380b9d8b18f426 + ;; 21.0.0_pre20250311) EGIT_COMMIT=cb7298f66d62a3548fcf3bd230304067ecf30d17 ;; |