commit: b4de7d877132d95544df77c92bab692af8c24c2d
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 12 06:48:46 2020 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Fri Jun 12 06:50:27 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4de7d87
dev-lang/rust: add some comments to cross section
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
dev-lang/rust/rust-1.44.0.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dev-lang/rust/rust-1.44.0.ebuild b/dev-lang/rust/rust-1.44.0.ebuild
index 1a6fdeabca6..a0e29a784e9 100644
--- a/dev-lang/rust/rust-1.44.0.ebuild
+++ b/dev-lang/rust/rust-1.44.0.ebuild
@@ -344,8 +344,13 @@ src_configure() {
EOF
fi
+ # append cross target to "normal" target list
+ # example 'target = ["powerpc64le-unknown-linux-gnu"]'
+ # becomes 'target =
["powerpc64le-unknown-linux-gnu","aarch64-unknown-linux-gnu"]'
+
rust_targets="${rust_targets},\"${cross_rust_target}\""
sed -i "/^target = \[/ s#\[.*\]#\[${rust_targets}\]#"
config.toml || die
+
ewarn
ewarn "enabled ${rust_target} rust target, using
${cross_toolchain} cross toolchain"
ewarn