Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 569462 Details for
Bug 680652
sys-devel/crossdev: handle LLVM, Clang, and Rust
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against dev-lang/rust ebuild to add armv7 std crates
rust-std-armv7.patch (text/plain), 1.72 KB, created by
James Le Cuirot
on 2019-03-17 10:24:55 UTC
(
hide
)
Description:
Patch against dev-lang/rust ebuild to add armv7 std crates
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2019-03-17 10:24:55 UTC
Size:
1.72 KB
patch
obsolete
>From 5f5c83a521260b3002260aae4d89ab8019282658 Mon Sep 17 00:00:00 2001 >From: stefson <herrtimson@yahoo.de> >Date: Wed, 13 Mar 2019 20:27:59 +0100 >Subject: [PATCH] dev-lang/rust: enable rust-std-armv7 as an example > >--- > dev-lang/rust/rust-1.32.0.ebuild | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > >diff --git a/dev-lang/rust/rust-1.32.0.ebuild b/dev-lang/rust/rust-1.32.0.ebuild >index 5a93fbcd13c8..6e316ce18586 100644 >--- a/dev-lang/rust/rust-1.32.0.ebuild >+++ b/dev-lang/rust/rust-1.32.0.ebuild >@@ -38,7 +38,7 @@ LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?} > > LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" > >-IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt system-llvm wasm ${ALL_LLVM_TARGETS[*]}" >+IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt rust-std-armv7 system-llvm wasm ${ALL_LLVM_TARGETS[*]}" > > COMMON_DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 > sys-libs/zlib >@@ -126,6 +126,10 @@ src_configure() { > if use wasm; then > rust_targets="${rust_targets},\"wasm32-unknown-unknown\"" > fi >+ >+ if use rust-std-armv7; then >+ rust_targets="${rust_targets},\"armv7-unknown-linux-gnueabihf\"" >+ fi > rust_targets="${rust_targets#,}" > > local extended="true" tools="\"cargo\"," >@@ -207,6 +211,18 @@ src_configure() { > linker = "rust-lld" > EOF > fi >+ >+ >+ if use rust-std-armv7; then >+ cat <<- EOF >> "${S}"/config.toml >+ [target.armv7-unknown-linux-gnueabihf] >+ cc = "armv7a-unknown-linux-gnueabihf-gcc" >+ cxx = "armv7a-unknown-linux-gnueabihf-g++" >+ linker = "armv7a-unknown-linux-gnueabihf-gcc" >+ ar = "armv7a-unknown-linux-gnueabihf-ar" >+ llvm-config = "/usr/armv7a-unknown-linux-gnueabihf/usr/lib/llvm/7/bin/llvm-config" >+ EOF >+ fi > } > > src_compile() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 680652
: 569462 |
569592