-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc6ec1e
commit c01f676
Showing
2 changed files
with
6 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,10 @@ | |
# | ||
pkgname=rust | ||
version=1.82.0 | ||
revision=1 | ||
revision=2 | ||
_llvmver=19 | ||
hostmakedepends="curl pkg-config python3 tar cargo-bootstrap" | ||
makedepends="libffi-devel ncurses-devel libxml2-devel zlib-devel llvm18-devel" | ||
makedepends="libffi-devel ncurses-devel libxml2-devel zlib-devel llvm${_llvmver}-devel" | ||
depends="rust-std gcc" | ||
short_desc="Safe, concurrent, practical systems language" | ||
maintainer="Enno Boland <[email protected]>" | ||
|
@@ -23,6 +24,7 @@ lib32disabled=yes | |
make_check=no # CBA for now | ||
python_version=3 # needed for python files in rust-src | ||
|
||
build_helper="qemu" | ||
build_options="bindist" | ||
desc_option_bindist="Generate tarballs for bootstrap" | ||
|
||
|
@@ -34,7 +36,7 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then | |
fi | ||
|
||
if [ "$CROSS_BUILD" ]; then | ||
hostmakedepends+=" rust llvm18-devel" | ||
hostmakedepends+=" rust llvm${_llvmver}-devel" | ||
# These are required for building the buildhost's stage0/1 | ||
hostmakedepends+=" libffi-devel libxml2-devel ncurses-devel zlib-devel" | ||
else | ||
|
@@ -49,7 +51,6 @@ _clear_vendor_checksums() { | |
} | ||
|
||
post_patch() { | ||
rm -rf src/llvm-project | ||
if [ "$build_option_bindist" ]; then | ||
for x in ${FILESDIR}/patches/static-llvm/*.patch; do | ||
msg_normal "Applying patch $x\n" | ||
|
@@ -96,7 +97,7 @@ do_configure() { | |
fi | ||
|
||
if [ "$CROSS_BUILD" ]; then | ||
_cross_args="--set=target.${RUST_TARGET}.llvm-config=/usr/bin/llvm-config | ||
_cross_args="--set=target.${RUST_TARGET}.llvm-config=${XBPS_WRAPPERDIR}/llvm-config-qemu | ||
--set=target.${RUST_TARGET}.crt-static=false | ||
--set=target.${RUST_TARGET}.cc=${CC} | ||
--set=target.${RUST_TARGET}.cxx=${CXX} | ||
|