libllvm: don't rm clang-offload-wrapper

This commit is contained in:
Lucy Phipps 2020-08-04 18:58:15 +01:00 committed by buttaface
parent fc0e77edb2
commit c1ee68c6ad
2 changed files with 1 additions and 15 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://clang.llvm.org/
TERMUX_PKG_DESCRIPTION="Modular compiler and toolchain technologies library"
TERMUX_PKG_LICENSE="NCSA"
TERMUX_PKG_VERSION=10.0.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=(c5d8e30b57cbded7128d78e5e8dad811bff97a8d471896812f57fa99ee82cdf3
f99afc382b88e622c689b6d96cadfa6241ef55dca90e87fc170352e12ddb2b24
591449e0aa623a6318d5ce2371860401653c48bb540982ccdd933992cb88df7a
@ -15,7 +15,6 @@ TERMUX_PKG_SRCURL=(https://github.com/llvm/llvm-project/releases/download/llvmor
https://github.com/llvm/llvm-project/releases/download/llvmorg-$TERMUX_PKG_VERSION/clang-tools-extra-$TERMUX_PKG_VERSION.src.tar.xz)
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_RM_AFTER_INSTALL="
bin/clang-offload-wrapper
lib/libgomp.a
lib/libiomp5.a
"

View File

@ -37,23 +37,10 @@ termux_step_host_build() {
ninja -j $TERMUX_MAKE_PROCESSES lldb-tblgen
}
termux_step_pre_configure() {
# This will be there if libllvm was built from scratch, but not if the pre-built
# package was extracted. Not really needed but the stupid clang CMake config makes
# sure it's there.
if [ ! -f "$TERMUX_PREFIX/bin/clang-offload-wrapper" ]; then
touch $TERMUX_PREFIX/bin/clang-offload-wrapper
touch $TERMUX_PKG_BUILDDIR/rm-fake-ci-test
fi
}
termux_step_make() {
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES all docs-lldb-man
}
termux_step_post_make_install() {
cp $TERMUX_PKG_BUILDDIR/docs/man/lldb.1 $TERMUX_PREFIX/share/man/man1
if [ -f "$TERMUX_PKG_BUILDDIR/rm-fake-ci-test" ]; then
rm $TERMUX_PREFIX/bin/clang-offload-wrapper
fi
}