Skip to content
Snippets Groups Projects
Commit de5cd366 authored by Ariadne Conill's avatar Ariadne Conill
Browse files

community/rust: more progress on cross-enabling rust

parent a7891269
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ _bootver=1.46.0 ...@@ -10,7 +10,7 @@ _bootver=1.46.0
pkgrel=0 pkgrel=0
pkgdesc="The Rust Programming Language" pkgdesc="The Rust Programming Language"
url="https://www.rust-lang.org" url="https://www.rust-lang.org"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" arch="x86_64 armv7 armhf aarch64 x86 ppc64le s390x"
license="Apache-2.0 AND MIT" license="Apache-2.0 AND MIT"
# gcc is needed at runtime just for linking. Someday rustc might invoke # gcc is needed at runtime just for linking. Someday rustc might invoke
...@@ -37,7 +37,6 @@ makedepends_host=" ...@@ -37,7 +37,6 @@ makedepends_host="
libgit2-dev libgit2-dev
openssl-dev openssl-dev
llvm$_llvmver-dev llvm$_llvmver-dev
llvm$_llvmver-test-utils
zlib-dev zlib-dev
" "
...@@ -147,8 +146,18 @@ build() { ...@@ -147,8 +146,18 @@ build() {
--python="$_python" \ --python="$_python" \
--set="rust.musl-root=/usr" \ --set="rust.musl-root=/usr" \
--set="target.$_target.llvm-config=/usr/lib/llvm$_llvmver/bin/llvm-config" \ --set="target.$_target.llvm-config=/usr/lib/llvm$_llvmver/bin/llvm-config" \
--set="target.$_target.musl-root=/usr" \
--set="target.$_target.crt-static=false" \
--set="target.$_target.cc=${CROSS_COMPILE}gcc" \
--set="target.$_target.cxx=${CROSS_COMPILE}c++" \
--set="target.$_target.ar=${CROSS_COMPILE}ar" \
--set="target.$_target.linker=${CROSS_COMPILE}gcc" \
--set="target.$_build.musl-root=/usr" \ --set="target.$_build.musl-root=/usr" \
--set="target.$_build.crt-static=false" --set="target.$_build.crt-static=false" \
--set="target.$_build.cc=gcc" \
--set="target.$_build.cxx=c++" \
--set="target.$_build.ar=ar" \
--set="target.$_build.linker=gcc"
# Allow warnings instead of just aborting the build # Allow warnings instead of just aborting the build
sed 's/#deny-warnings = .*/deny-warnings = false/' -i config.toml sed 's/#deny-warnings = .*/deny-warnings = false/' -i config.toml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment