1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-20 12:27:08 +00:00

rust: Fix wasm32-unknown-unknown std build

- profiler: wasm32-unknown-unknown is an not supported because it don't have a libc.
- Add patch from beb4e16f05.patch
This commit is contained in:
PeroSar 2022-05-21 07:03:20 +00:00 committed by Henrik Grimler
parent 35f132c420
commit 22cc50c69d
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,33 @@
From beb4e16f055aa7925194fd2c360105a6d55f10f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20BRANSTETT?= <lolo.branstett@numericable.fr>
Date: Wed, 27 Apr 2022 19:11:56 +0200
Subject: [PATCH] Add missing `target_feature` to the list of well known cfg
names
---
compiler/rustc_session/src/config.rs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
index 12c5c4445d46f..330201dd8fef6 100644
--- a/compiler/rustc_session/src/config.rs
+++ b/compiler/rustc_session/src/config.rs
@@ -1038,6 +1038,7 @@ impl CrateCheckConfig {
sym::target_has_atomic_load_store,
sym::target_has_atomic,
sym::target_has_atomic_equal_alignment,
+ sym::target_feature,
sym::panic,
sym::sanitize,
sym::debug_assertions,
@@ -1081,6 +1082,10 @@ impl CrateCheckConfig {
.into_iter()
.map(|sanitizer| Symbol::intern(sanitizer.as_str().unwrap()));
+ // Unknown possible values:
+ // - `feature`
+ // - `target_feature`
+
// No-values
for name in [
sym::doc,

View File

@ -13,7 +13,6 @@ cargo = "@CARGO@"
python = "python2.7"
extended = true
sanitizers = false
profiler = true
#tools = ["cargo", "analysis", "clippy-driver" ]
tools = ["cargo", "rls", "clippy", "rustfmt", "analysis", "src"]
@ -37,6 +36,7 @@ llvm-config = "/usr/bin/llvm-config-12"
android-ndk = "@TERMUX_STANDALONE_TOOLCHAIN@"
llvm-config = "@TERMUX_PREFIX@/bin/llvm-config"
ar = "llvm-ar"
profiler = true
[dist]
src-tarball = false