* update rust-analyzer to 20240715-1
This commit is contained in:
parent
2f0376372f
commit
72d49d64ce
14
rust-analyzer/.SRCINFO
Normal file
14
rust-analyzer/.SRCINFO
Normal file
@ -0,0 +1,14 @@
|
||||
pkgbase = rust-analyzer
|
||||
pkgdesc = Rust compiler front-end for IDEs
|
||||
pkgver = 20240715
|
||||
pkgrel = 1
|
||||
url = https://rust-analyzer.github.io/
|
||||
arch = x86_64
|
||||
license = MIT OR Apache-2.0
|
||||
makedepends = git
|
||||
depends = gcc-libs
|
||||
depends = rust-src
|
||||
source = git+https://github.com/rust-lang/rust-analyzer.git#tag=2024-07-15
|
||||
b2sums = 18cbd8149145fba2c83f31cb80f215929b8973912571f335323de1d8896ec3f046e749ce7d67686e57c257fa577db1df44471aae20e490b52cbf86b581e8b5dc
|
||||
|
||||
pkgname = rust-analyzer
|
@ -4,17 +4,20 @@
|
||||
# Contributor: Sergey A. <murlakatamenka@disroot.org>
|
||||
|
||||
pkgname=rust-analyzer
|
||||
_pkgver=2024-05-27
|
||||
_pkgver=2024-07-15
|
||||
pkgver=${_pkgver//-}
|
||||
pkgrel=1
|
||||
pkgdesc='Rust compiler front-end for IDEs'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url=https://rust-analyzer.github.io/
|
||||
license=('Apache-2.0' 'MIT')
|
||||
depends=('gcc-libs' 'rust-src')
|
||||
makedepends=('git')
|
||||
license=('MIT OR Apache-2.0')
|
||||
depends=(
|
||||
gcc-libs
|
||||
rust-src
|
||||
)
|
||||
makedepends=(git)
|
||||
source=("git+https://github.com/rust-lang/$pkgname.git#tag=$_pkgver")
|
||||
b2sums=('6eb2f3873bb5199b6d679fd37d550dfab70fb72873780b42b7b186c3a8958e14a684c73fa8c66de5b4545ac101a405e816bfa19c9af0dc331953b5e1f0c04091')
|
||||
b2sums=('18cbd8149145fba2c83f31cb80f215929b8973912571f335323de1d8896ec3f046e749ce7d67686e57c257fa577db1df44471aae20e490b52cbf86b581e8b5dc')
|
||||
|
||||
# Use LTO
|
||||
export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
|
||||
@ -22,9 +25,7 @@ export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
|
||||
# Use debug
|
||||
export CARGO_PROFILE_RELEASE_DEBUG=2
|
||||
|
||||
MYARCH=${CARCH}
|
||||
case "${CARCH}" in
|
||||
riscv64) MYARCH=riscv64gc ;;
|
||||
powerpc)
|
||||
# fails to link otherwise due to 32bit limitations
|
||||
export RUSTFLAGS="-C opt-level=2"
|
||||
@ -35,8 +36,7 @@ esac
|
||||
|
||||
prepare() {
|
||||
cd $pkgname
|
||||
|
||||
cargo fetch --locked --target "$MYARCH-unknown-linux-gnu"
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user