From dc5f1fe055b6456f2db4646f9dc100fe41ccdf88 Mon Sep 17 00:00:00 2001
From: 4lDO2 <4lDO2@protonmail.com>
Date: Fri, 19 Mar 2021 10:33:26 +0100
Subject: [PATCH] Update toolchain.

---
 .cargo/config                                                 | 4 ++++
 .../{x86_64-unknown-none.json => x86_64-unknown-kernel.json}  | 0
 2 files changed, 4 insertions(+)
 rename targets/{x86_64-unknown-none.json => x86_64-unknown-kernel.json} (100%)

diff --git a/.cargo/config b/.cargo/config
index fc260d90..20ee1ec9 100644
--- a/.cargo/config
+++ b/.cargo/config
@@ -3,3 +3,7 @@ rustflags = [
   # Kernel should preserve floating-point registers
   "-Csoft-float",
 ]
+
+[unstable]
+build-std = ["core", "alloc", "compiler_builtins"]
+build-std-features = ["panic-unwind"]
diff --git a/targets/x86_64-unknown-none.json b/targets/x86_64-unknown-kernel.json
similarity index 100%
rename from targets/x86_64-unknown-none.json
rename to targets/x86_64-unknown-kernel.json
-- 
GitLab