diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-01 13:35:41 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-01 14:00:18 +0200 |
commit | a32b3dea8e22c1ef92266590c25757bbfcd861dd (patch) | |
tree | 7572c1faf05ea195e5f7457f413b3847f332adfa /sys-libs | |
parent | dev-lang/ruby: support Prefix so as not to collide with rubygem. (diff) | |
download | gentoo-a32b3dea8e22c1ef92266590c25757bbfcd861dd.tar.gz gentoo-a32b3dea8e22c1ef92266590c25757bbfcd861dd.tar.bz2 gentoo-a32b3dea8e22c1ef92266590c25757bbfcd861dd.zip |
sys-libs/compiler-rt-sanitizers: Fix running unsandbox+lit correctly
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild | 9 |
1 files 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 c656e22061b4..aec72902a47f 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" |