about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorAyush Singh <ayushsingh1325@gmail.com>2022-12-18 09:54:54 +0530
committerAyush Singh <ayushdevel1325@gmail.com>2023-09-22 17:23:30 +0530
commit48c6ae0611ec6fb4094a24610982ddefde16e20f (patch)
tree9d1554238f804bed880ed58b1ee2230c0019e723 /src/bootstrap
parent5a4e47ebedb4132168c1b22262f21f0d3a2a96df (diff)
Add Minimal Std implementation for UEFI
Implemented modules:
1. alloc
2. os_str
3. env
4. math

Tracking Issue: https://github.com/rust-lang/rust/issues/100499
API Change Proposal: https://github.com/rust-lang/libs-team/issues/87

This was originally part of https://github.com/rust-lang/rust/pull/100316. Since
that PR was becoming too unwieldy and cluttered, and with suggestion
from @dvdhrm, I have extracted a minimal std implementation to this PR.

Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/config.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs
index 176ef8e92db..836328f94ef 100644
--- a/src/bootstrap/config.rs
+++ b/src/bootstrap/config.rs
@@ -532,11 +532,7 @@ pub struct Target {
 impl Target {
     pub fn from_triple(triple: &str) -> Self {
         let mut target: Self = Default::default();
-        if triple.contains("-none")
-            || triple.contains("nvptx")
-            || triple.contains("switch")
-            || triple.contains("-uefi")
-        {
+        if triple.contains("-none") || triple.contains("nvptx") || triple.contains("switch") {
             target.no_std = true;
         }
         target