summaryrefslogtreecommitdiff
path: root/rust/asm/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rust/asm/build.sh')
-rwxr-xr-xrust/asm/build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/asm/build.sh b/rust/asm/build.sh
new file mode 100755
index 0000000..0d51849
--- /dev/null
+++ b/rust/asm/build.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+mkdir -p bin
+cc -c main_aarch64.S -o bin/asm.o
+ar rcs bin/libasm.a bin/asm.o
+rustc --edition 2024 main.rs -L bin -l static=asm --out-dir bin