mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-libs/svt-av1: use upstream targets for pgo
Will lose out on verbose output, but clang needs special handling that isn't convenient to handle in the ebuild. Similarily don't use a separate pgo output directory, the clang path doesn't look into it. Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
ad3859d7d2
commit
3c7641397d
@@ -70,8 +70,6 @@ multilib_src_configure() {
|
||||
-DSVT_AV1_LTO=OFF
|
||||
)
|
||||
|
||||
use pgo && mycmakeargs+=( -DSVT_AV1_PGO_DIR="${T}/${ARCH}-pgo" )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
@@ -79,18 +77,9 @@ multilib_src_compile() {
|
||||
if use pgo; then
|
||||
mkdir -p "${BUILD_DIR}/objective-1-fast/" || die
|
||||
cp "${DISTDIR}/svt-av1-${PROFILING_VIDEO}" "${BUILD_DIR}/objective-1-fast/${PROFILING_VIDEO}" || die
|
||||
|
||||
## Run the targets separately for more verbose output
|
||||
|
||||
# equivalent to the target PGOCompileGen
|
||||
edo cmake "${BUILD_DIR}" -DSVT_INTERNAL_PGO_GENERATE=ON -DSVT_INTERNAL_PGO_USE=OFF
|
||||
cmake_build SvtAv1EncApp
|
||||
|
||||
cmake_build PGOCompileGen
|
||||
cmake_build PGOGenerateProfile
|
||||
|
||||
# equivalent to the target PGOCompileUse
|
||||
edo cmake "${BUILD_DIR}" -DSVT_INTERNAL_PGO_GENERATE=OFF -DSVT_INTERNAL_PGO_USE=ON
|
||||
cmake_build SvtAv1EncApp
|
||||
cmake_build PGOCompileUse
|
||||
fi
|
||||
|
||||
cmake_src_compile
|
||||
|
||||
@@ -70,8 +70,6 @@ multilib_src_configure() {
|
||||
-DSVT_AV1_LTO=OFF
|
||||
)
|
||||
|
||||
use pgo && mycmakeargs+=( -DSVT_AV1_PGO_DIR="${T}/${ARCH}-pgo" )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
@@ -79,18 +77,9 @@ multilib_src_compile() {
|
||||
if use pgo; then
|
||||
mkdir -p "${BUILD_DIR}/objective-1-fast/" || die
|
||||
cp "${DISTDIR}/svt-av1-${PROFILING_VIDEO}" "${BUILD_DIR}/objective-1-fast/${PROFILING_VIDEO}" || die
|
||||
|
||||
## Run the targets separately for more verbose output
|
||||
|
||||
# equivalent to the target PGOCompileGen
|
||||
edo cmake "${BUILD_DIR}" -DSVT_INTERNAL_PGO_GENERATE=ON -DSVT_INTERNAL_PGO_USE=OFF
|
||||
cmake_build SvtAv1EncApp
|
||||
|
||||
cmake_build PGOCompileGen
|
||||
cmake_build PGOGenerateProfile
|
||||
|
||||
# equivalent to the target PGOCompileUse
|
||||
edo cmake "${BUILD_DIR}" -DSVT_INTERNAL_PGO_GENERATE=OFF -DSVT_INTERNAL_PGO_USE=ON
|
||||
cmake_build SvtAv1EncApp
|
||||
cmake_build PGOCompileUse
|
||||
fi
|
||||
|
||||
cmake_src_compile
|
||||
|
||||
Reference in New Issue
Block a user