commit: a32b3dea8e22c1ef92266590c25757bbfcd861dd Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Oct 1 11:35:41 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Oct 1 12:00:18 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a32b3dea
sys-libs/compiler-rt-sanitizers: Fix running unsandbox+lit correctly .../compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild index c656e22061b..aec72902a47 100644 --- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild +++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild @@ -86,10 +86,15 @@ src_configure() { -DCOMPILER_RT_BUILD_XRAY=ON ) if use test; then + cat > "${T}"/unsandbox-lit.py <<-EOF || die + import os, sys + os.execlp("unsandbox", sys.argv[0], "lit", *sys.argv[1:]) + EOF + mycmakeargs+=( -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" - -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/unsandbox" - -DLLVM_LIT_ARGS="lit;-vv" + -DLLVM_EXTERNAL_LIT="${T}/unsandbox-lit.py" + -DLLVM_LIT_ARGS="-vv" # they are created during src_test() -DCOMPILER_RT_TEST_COMPILER="${BUILD_DIR}/lib/llvm/${LLVM_SLOT}/bin/clang"