mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-devel/clang: Dedupe with new eclass code
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
inherit cmake llvm llvm.org multilib-minimal multiprocessing \
|
||||
pax-utils python-single-r1 toolchain-funcs
|
||||
inherit cmake llvm llvm.org multilib-minimal pax-utils \
|
||||
python-single-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="C language family frontend for LLVM"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
@@ -55,9 +55,6 @@ PDEPEND="
|
||||
default-compiler-rt? ( =sys-libs/compiler-rt-${PV%_*}* )
|
||||
default-libcxx? ( >=sys-libs/libcxx-${PV} )"
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
# Multilib notes:
|
||||
# 1. ABI_* flags control ABIs libclang* is built for only.
|
||||
# 2. clang is always capable of compiling code for all ABIs for enabled
|
||||
@@ -85,10 +82,7 @@ src_prepare() {
|
||||
mkdir -p x/y || die
|
||||
BUILD_DIR=${WORKDIR}/x/y/clang
|
||||
|
||||
# cmake eclasses suck by forcing ${S} here
|
||||
CMAKE_USE_DIR=${S} \
|
||||
S=${WORKDIR} \
|
||||
cmake_src_prepare
|
||||
llvm.org_src_prepare
|
||||
|
||||
mv ../clang-tools-extra tools/extra || die
|
||||
}
|
||||
@@ -259,7 +253,7 @@ multilib_src_configure() {
|
||||
)
|
||||
use test && mycmakeargs+=(
|
||||
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
|
||||
-DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
|
||||
-DLLVM_LIT_ARGS="$(get_lit_flags)"
|
||||
)
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
inherit cmake llvm llvm.org multilib-minimal multiprocessing \
|
||||
pax-utils python-single-r1 toolchain-funcs
|
||||
inherit cmake llvm llvm.org multilib-minimal pax-utils \
|
||||
python-single-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="C language family frontend for LLVM"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
@@ -55,9 +55,6 @@ PDEPEND="
|
||||
default-compiler-rt? ( =sys-libs/compiler-rt-${PV%_*}* )
|
||||
default-libcxx? ( >=sys-libs/libcxx-${PV} )"
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
# Multilib notes:
|
||||
# 1. ABI_* flags control ABIs libclang* is built for only.
|
||||
# 2. clang is always capable of compiling code for all ABIs for enabled
|
||||
@@ -85,10 +82,7 @@ src_prepare() {
|
||||
mkdir -p x/y || die
|
||||
BUILD_DIR=${WORKDIR}/x/y/clang
|
||||
|
||||
# cmake eclasses suck by forcing ${S} here
|
||||
CMAKE_USE_DIR=${S} \
|
||||
S=${WORKDIR} \
|
||||
cmake_src_prepare
|
||||
llvm.org_src_prepare
|
||||
|
||||
mv ../clang-tools-extra tools/extra || die
|
||||
}
|
||||
@@ -259,7 +253,7 @@ multilib_src_configure() {
|
||||
)
|
||||
use test && mycmakeargs+=(
|
||||
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
|
||||
-DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
|
||||
-DLLVM_LIT_ARGS="$(get_lit_flags)"
|
||||
)
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
inherit cmake llvm llvm.org multilib-minimal multiprocessing \
|
||||
pax-utils python-single-r1 toolchain-funcs
|
||||
inherit cmake llvm llvm.org multilib-minimal pax-utils \
|
||||
python-single-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="C language family frontend for LLVM"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
@@ -56,9 +56,6 @@ PDEPEND="
|
||||
default-compiler-rt? ( =sys-libs/compiler-rt-${PV%_*}* )
|
||||
default-libcxx? ( >=sys-libs/libcxx-${PV} )"
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
# Multilib notes:
|
||||
# 1. ABI_* flags control ABIs libclang* is built for only.
|
||||
# 2. clang is always capable of compiling code for all ABIs for enabled
|
||||
@@ -80,10 +77,7 @@ src_prepare() {
|
||||
mkdir -p x/y || die
|
||||
BUILD_DIR=${WORKDIR}/x/y/clang
|
||||
|
||||
# cmake eclasses suck by forcing ${S} here
|
||||
CMAKE_USE_DIR=${S} \
|
||||
S=${WORKDIR} \
|
||||
cmake_src_prepare
|
||||
llvm.org_src_prepare
|
||||
|
||||
mv ../clang-tools-extra tools/extra || die
|
||||
}
|
||||
@@ -254,7 +248,7 @@ multilib_src_configure() {
|
||||
)
|
||||
use test && mycmakeargs+=(
|
||||
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
|
||||
-DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
|
||||
-DLLVM_LIT_ARGS="$(get_lit_flags)"
|
||||
)
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
|
||||
Reference in New Issue
Block a user