Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust/
Date: Wed, 01 Jun 2022 03:11:49
Message-Id: 1654053070.fbb59a8a651ae791d652f3ccb47168713b9f3b72.gyakovlev@gentoo
1 commit: fbb59a8a651ae791d652f3ccb47168713b9f3b72
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 22:03:38 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 03:11:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbb59a8a
7
8 dev-lang/rust: don't enable profiler for wasm targets
9
10 Issue: https://github.com/rust-lang/rust/issues/81684
11 Closes: https://bugs.gentoo.org/848483
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 dev-lang/rust/rust-1.60.0.ebuild | 2 ++
15 dev-lang/rust/rust-1.61.0-r1.ebuild | 2 ++
16 2 files changed, 4 insertions(+)
17
18 diff --git a/dev-lang/rust/rust-1.60.0.ebuild b/dev-lang/rust/rust-1.60.0.ebuild
19 index 6a17f74e2327..384775480506 100644
20 --- a/dev-lang/rust/rust-1.60.0.ebuild
21 +++ b/dev-lang/rust/rust-1.60.0.ebuild
22 @@ -420,6 +420,8 @@ src_configure() {
23 if use wasm; then
24 cat <<- _EOF_ >> "${S}"/config.toml
25 [target.wasm32-unknown-unknown]
26 + # wasm target does not have profiler_builtins https://bugs.gentoo.org/848483
27 + profiler = false
28 linker = "$(usex system-llvm lld rust-lld)"
29 _EOF_
30 fi
31
32 diff --git a/dev-lang/rust/rust-1.61.0-r1.ebuild b/dev-lang/rust/rust-1.61.0-r1.ebuild
33 index 40bfa3387e3e..0d78a06e94e3 100644
34 --- a/dev-lang/rust/rust-1.61.0-r1.ebuild
35 +++ b/dev-lang/rust/rust-1.61.0-r1.ebuild
36 @@ -438,6 +438,8 @@ src_configure() {
37 cat <<- _EOF_ >> "${S}"/config.toml
38 [target.wasm32-unknown-unknown]
39 linker = "$(usex system-llvm lld rust-lld)"
40 + # wasm target does not have profiler_builtins https://bugs.gentoo.org/848483
41 + profiler = false
42 _EOF_
43 fi