Commit 2f952ff8 authored by Jakub Jirutka's avatar Jakub Jirutka

testing/rust: add -dbg subpackage, let binaries to be stripped

I don't remember the exact reason why I've disabled stripping. Maybe
I get it from Fedora package [1]? Anyway, I've checked that our strip
does not remove .rustc section, so it should be probably okay.

[1]: https://src.fedoraproject.org/cgit/rpms/rust.git/tree/rust.spec?id=2453b710d43f1f9cacc53b4e9caa2da2f9c888ac#n185
parent 2a232275
......@@ -17,7 +17,8 @@ depends="$pkgname-stdlib=$pkgver-r$pkgrel gcc"
# libffi-dev is needed just because we compile llvm with LLVM_ENABLE_FFI.
makedepends="cmake file libffi-dev libunwind-dev llvm llvm-dev
musl-dev python2 tar zlib-dev"
subpackages="$pkgname-stdlib $pkgname-gdb::noarch $pkgname-lldb::noarch $pkgname-doc"
subpackages="$pkgname-dbg $pkgname-stdlib
$pkgname-gdb::noarch $pkgname-lldb::noarch $pkgname-doc"
# XXX: Rust is self-hosted, so you need rustc to build rustc... The problem is
# that Rust doesn't provide prebuilt rustc for musl yet. Thus we use binaries
......@@ -37,8 +38,7 @@ source="https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz
change-rpath-to-rustlib.patch
fix-jemalloc-musl.patch
"
# TODO: strip gently (see Fedora pkg for inspiration)
options="!strip !check"
options="!check"
builddir="$srcdir/rustc-$pkgver-src"
_ctarget="$CARCH-unknown-linux-musl"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment