dev-lang/rust: don't enable profiler for wasm targets

Issue: https://github.com/rust-lang/rust/issues/81684
Closes: https://bugs.gentoo.org/848483
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
Georgy Yakovlev
2022-05-31 15:03:38 -07:00
parent 7cbc1d11bf
commit fbb59a8a65
2 changed files with 4 additions and 0 deletions

View File

@@ -420,6 +420,8 @@ src_configure() {
if use wasm; then
cat <<- _EOF_ >> "${S}"/config.toml
[target.wasm32-unknown-unknown]
# wasm target does not have profiler_builtins https://bugs.gentoo.org/848483
profiler = false
linker = "$(usex system-llvm lld rust-lld)"
_EOF_
fi

View File

@@ -438,6 +438,8 @@ src_configure() {
cat <<- _EOF_ >> "${S}"/config.toml
[target.wasm32-unknown-unknown]
linker = "$(usex system-llvm lld rust-lld)"
# wasm target does not have profiler_builtins https://bugs.gentoo.org/848483
profiler = false
_EOF_
fi