Skip to content

Commit

Permalink
rust: build with llvm19
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Martinez authored and tranzystorekk committed Nov 24, 2024
1 parent fc6ec1e commit c01f676
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
13 changes: 0 additions & 13 deletions srcpkgs/rust/patches/0015-properly-skip-submodules.patch

This file was deleted.

11 changes: 6 additions & 5 deletions srcpkgs/rust/template
Original file line number Diff line number Diff line change
Expand Up @@ -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]>"
Expand All @@ -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"

Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit c01f676

Please sign in to comment.