Commit 8830b299 authored by Jeff Huang's avatar Jeff Huang 🤔

[skip-ci] lib32-rust: replaced by lib32-rust-libs

parent 38a0f2b5
Pipeline #4426 skipped
_pkgbasename=rust
pkgname=lib32-$_pkgbasename
pkgver=1.36.0
pkgrel=1
pkgdesc='32-bit libraries for rust'
url='https://www.rust-lang.org/'
arch=('x86_64')
license=('MIT' 'Apache')
makedepends=('llvm' 'libffi' 'perl' 'python3' 'curl' 'cmake')
depends=('lib32-gcc-libs' "$_pkgbasename=$pkgver")
source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc}
config.toml
librustc-llvm-libffi.patch)
sha256sums=('04c4e4d7213d036d6aaed392841496d272146312c0290f728b7400fccd15bb1b'
'SKIP'
'a4a4f8af81b92e70f308c55e19f29103ecd63b90577b067fd33530604f99c873'
'49fa39e8775c9e3b3400d35d2df0728975371f9832d2d76d0dadf9fc73199774')
validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
prepare() {
cd "rustc-$pkgver-src"
cp "$srcdir"/config.toml config.toml
patch -Np0 -i $srcdir/librustc-llvm-libffi.patch
}
build() {
cd "rustc-$pkgver-src"
python3 ./x.py build
}
package() {
cd "rustc-$pkgver-src"
target="$pkgdir"/"$(rustc --print sysroot)"/lib/rustlib
install -d "$target"
cp -r \
build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-unknown-linux-gnu \
"$target"
for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
}
[llvm]
link-shared = true
[build]
target = ["i686-unknown-linux-gnu"] # defaults to just the build triple
cargo = "/usr/bin/cargo"
rustc = "/usr/bin/rustc"
python = "python3"
extended = true
sanitizers = false
local-rebuild = true
[install]
prefix = "/usr"
[rust]
# 0 or the new default of 16 is faster, but can result in worse performance
# https://github.com/rust-lang/rust/issues/47745
codegen-units = 1
debuginfo = true
debuginfo-lines = true
channel = "stable"
rpath = false
[target.x86_64-unknown-linux-gnu]
llvm-config = "/usr/bin/llvm-config"
--- src/librustc_llvm/lib.rs 2019-07-03 10:00:00.000000000 +0200
+++ src/librustc_llvm/lib.rs.new 2019-07-27 14:12:19.790910082 +0200
@@ -4,6 +4,7 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
+#[link(name = "ffi")] extern {}
// See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
#[allow(unused_extern_crates)]
extern crate rustc_cratesio_shim;
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