Skip to content

Commit a20690e

Browse files
committed
build: Change usage of llvm-{tools} to rust-{tools}
1 parent 003c40f commit a20690e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ set -euo pipefail
55
cargo build --release
66
ELF=target/thumbv6m-none-eabi/release/flash-algo
77

8-
llvm-objdump --disassemble $ELF > target/disassembly.s
9-
llvm-objdump -x $ELF > target/dump.txt
10-
llvm-nm $ELF -n > target/nm.txt
8+
rust-objdump --disassemble $ELF > target/disassembly.s
9+
rust-objdump -x $ELF > target/dump.txt
10+
rust-nm $ELF -n > target/nm.txt
1111

1212
function bin {
13-
llvm-objcopy $ELF -O binary - | base64 -w0
13+
rust-objcopy $ELF -O binary - | base64 -w0
1414
}
1515

1616
function sym {
17-
echo $((0x$(llvm-nm $ELF | grep -w $1 | cut -d ' ' -f 1) + 1))
17+
echo $((0x$(rust-nm $ELF | grep -w $1 | cut -d ' ' -f 1) + 1))
1818
}
1919

2020
cat <<EOF

0 commit comments

Comments
 (0)