llvm: fix compiler-rt build; it wasn't being moved correctly.

This commit is contained in:
Juan RP 2015-02-11 16:03:42 +01:00
parent 5184e566ba
commit 8c2b0f175d
1 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
pkgname=llvm
version=3.5.1
wrksrc="llvm-${version}.src"
revision=2
revision=3
lib32disabled=yes
configure_args="--disable-expensive-checks --disable-debug-runtime
--enable-bindings=none --enable-optimized --enable-shared --enable-libffi
@ -18,7 +18,8 @@ distfiles="
http://www.llvm.org/releases/${version}/lldb-${version}.src.tar.xz
http://www.llvm.org/releases/${version}/cfe-${version}.src.tar.xz
http://www.llvm.org/releases/${version}/compiler-rt-${version}.src.tar.xz"
checksum="bf3275d2d7890015c8d8f5e6f4f882f8cf3bf51967297ebe74111d6d8b53be15
checksum="
bf3275d2d7890015c8d8f5e6f4f882f8cf3bf51967297ebe74111d6d8b53be15
e8b948c6c85cd61bd9a48361959401b9c631fa257c0118db26697c5d57460e13
6773f3f9cf815631cc7e779ec134ddd228dc8e9a250e1ea3a910610c59eb8f5c
adf4b526f33e681aff5961f0821f5b514d3fc375410008842640b56a2e6a837a"
@ -37,8 +38,8 @@ post_extract() {
mv ${XBPS_BUILDDIR}/lldb-${version}.src ${wrksrc}/tools/lldb
fi
# Move compiler-rt files into the llvm source.
if [ -d ${XBPS_BUILDDIR}/compiler-rt-${version%.*} ]; then
mv ${XBPS_BUILDDIR}/compiler-rt-${version%.*} ${wrksrc}/projects/compiler-rt
if [ -d ${XBPS_BUILDDIR}/compiler-rt-${version} ]; then
mv ${XBPS_BUILDDIR}/compiler-rt-${version} ${wrksrc}/projects/compiler-rt
fi
}