mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-libs/xbyak: fixes for FEATURES=test
1. `dev-lang/nasm` is required for tests 2. tests fail to compile on non-multilib 3. tests fail to compile with libc++ (it has no multilib even on multilib profile) Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43075 Closes: https://github.com/gentoo/gentoo/pull/43075 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
3cd9f7818f
commit
3033b4048a
@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
inherit cmake multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="JIT assembler for x86(IA-32)/x64(AMD64, x86-64)"
|
||||
HOMEPAGE="https://github.com/herumi/xbyak"
|
||||
@ -17,9 +17,22 @@ IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? ( dev-lang/yasm )
|
||||
test? (
|
||||
dev-lang/yasm
|
||||
dev-lang/nasm
|
||||
)
|
||||
"
|
||||
|
||||
src_test() {
|
||||
emake -C test test
|
||||
src_prepare() {
|
||||
sed 's/ONLY_64BIT=0/ONLY_64BIT:=0/' -i test/Makefile || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local only_64bit=0
|
||||
if use amd64 && { ! has_multilib_profile || [[ $(tc-get-cxx-stdlib) == libc++ ]]; }; then
|
||||
only_64bit=1
|
||||
fi
|
||||
|
||||
emake -C test test ONLY_64BIT=${only_64bit}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user