diff options
Diffstat (limited to '.cargo/config.toml')
-rw-r--r-- | .cargo/config.toml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml index c91c3f3..9fa8b2c 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,21 @@ +[build] +rustflags = [ + # LLD (shipped with the Rust toolchain) is used as the default linker + # "-C", "link-arg=-Tlink.x", + + # if you run into problems with LLD switch to the GNU linker by commenting out + # this line + # "-C", "linker=arm-none-eabi-ld", + + # if you need to link to pre-compiled C libraries provided by a C toolchain + # use GCC as the linker by commenting out both lines above and then + # uncommenting the three lines below + "-C", + "target-feature=+atomics,+bulk-memory,+mutable-globals", +] + +[unstable] +build-std = ["std", "panic_abort"] + [net] git-fetch-with-cli = true |