Skip to content

Commit 0f6e5a5

Browse files
authored
Merge pull request #2 from AsafFisher/small-changes
config: Move `build-std` configurations to `.cargo/config`
2 parents ebda89a + 292905f commit 0f6e5a5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.cargo/config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
22

3+
[unstable]
4+
build-std = ["core"]
5+
build-std-features = ["panic_immediate_abort"]
6+
37
rustflags = [
48
"-C", "link-arg=--nmagic",
59
"-C", "link-arg=-Tlink.x",

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
cargo build --release -Zbuild-std=core -Zbuild-std-features=panic_immediate_abort
5+
cargo build --release
66
ELF=target/thumbv6m-none-eabi/release/flash-algo
77

88
llvm-objdump --disassemble $ELF > target/disassembly.s

rust-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nightly

0 commit comments

Comments
 (0)