We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05846ff commit f65ec2dCopy full SHA for f65ec2d
build.sh
@@ -2,6 +2,13 @@
2
3
set -euo pipefail
4
5
+# macOS base64 doesn't take -w argument and defaults to a single line.
6
+if [[ $(uname) = "Darwin" ]]; then
7
+ BASE64_FLAGS=""
8
+else
9
+ BASE64_FLAGS="-w0"
10
+fi
11
+
12
cargo build --release
13
ELF=target/thumbv6m-none-eabi/release/flash-algo
14
@@ -10,7 +17,7 @@ rust-objdump -x $ELF > target/dump.txt
17
rust-nm $ELF -n > target/nm.txt
18
19
function bin {
- rust-objcopy $ELF -O binary - | base64 -w0
20
+ rust-objcopy $ELF -O binary - | base64 $BASE64_FLAGS
21
}
15
22
16
23
function sym {
0 commit comments