File tree 1 file changed +26
-0
lines changed 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ Here we summarize the modification for each part of the compiler toolchain.
42
42
43
43
** Rust ` core ` Library**
44
44
- Strip away unnecessary fields in ` PanicInfo ` so that the panic handling infrastructure can have minimal code storage overhead.
45
+ - Provide atomic methods (e.g., ` compare_exchange ` , ` fetch_add ` ) for atomic types on ARMv6M architectures.
46
+
47
+ ** Rust ` alloc ` Library**
48
+ - Enable ` alloc::sync ` for ARMv6M architectures.
45
49
46
50
# Build the Modified Compiler Toolchain
47
51
@@ -216,6 +220,28 @@ Apply the patch.
216
220
patch -p1 < $PATCHES_DIR/rust-core/core_diff.patch
217
221
```
218
222
223
+ ## Rust ` alloc ` Library
224
+
225
+ Enter the directory containing the Rust ` alloc ` libray within the installed Rust compiler toolchain.
226
+ ```
227
+ cd $RUST_INSTALL_DIR/lib/rustlib/src/rust/library/
228
+ ```
229
+
230
+ Backup the original ` alloc ` library source code.
231
+ ```
232
+ cp -r alloc alloc_backup
233
+ ```
234
+
235
+ Enter the ` alloc ` library.
236
+ ```
237
+ cd alloc
238
+ ```
239
+
240
+ Apply the patch.
241
+ ```
242
+ patch -p1 < $PATCHES_DIR/rust-alloc/alloc_diff.patch
243
+ ```
244
+
219
245
## Register the Toolchain
220
246
221
247
Register the compiled Rust compiler toolchain with ` rustup ` . Substitute ` $RUST_INSTALL_DIR ` with the directory rustc is installed in.
You can’t perform that action at this time.
0 commit comments