Skip to content

Commit 70ab5be

Browse files
committed
Move stdlib workspace Cargo.toml to a patch
1 parent 9bcbe29 commit 70ab5be

File tree

2 files changed

+45
-26
lines changed

2 files changed

+45
-26
lines changed

build_sysroot/Cargo.toml

-26
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
From 3700aeda429a08d0e48f376194f330eaf084735a Mon Sep 17 00:00:00 2001
2+
From: bjorn3 <[email protected]>
3+
Date: Mon, 29 May 2023 11:52:57 +0000
4+
Subject: [PATCH] Add cargo workspace
5+
6+
---
7+
Cargo.toml | 26 ++++++++++++++++++++++++++
8+
1 file changed, 26 insertions(+)
9+
create mode 100644 Cargo.toml
10+
11+
diff --git a/Cargo.toml b/Cargo.toml
12+
new file mode 100644
13+
index 0000000..3e5d0c1
14+
--- /dev/null
15+
+++ b/Cargo.toml
16+
@@ -0,0 +1,26 @@
17+
+[workspace]
18+
+members = ["./library/sysroot"]
19+
+
20+
+[patch.crates-io]
21+
+rustc-std-workspace-core = { path = "./library/rustc-std-workspace-core" }
22+
+rustc-std-workspace-alloc = { path = "./library/rustc-std-workspace-alloc" }
23+
+rustc-std-workspace-std = { path = "./library/rustc-std-workspace-std" }
24+
+
25+
+[profile.dev]
26+
+lto = "off"
27+
+
28+
+[profile.release]
29+
+debug = true
30+
+incremental = true
31+
+lto = "off"
32+
+
33+
+# Mandatory for correctly compiling compiler-builtins
34+
+[profile.dev.package.compiler_builtins]
35+
+debug-assertions = false
36+
+overflow-checks = false
37+
+codegen-units = 10000
38+
+
39+
+[profile.release.package.compiler_builtins]
40+
+debug-assertions = false
41+
+overflow-checks = false
42+
+codegen-units = 10000
43+
--
44+
2.34.1
45+

0 commit comments

Comments
 (0)