summaryrefslogtreecommitdiff
path: root/rust/asm/build.sh
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-10-03 21:45:31 -0500
committerHunter Kvalevog <hunter@kvog.sh>2026-10-03 21:45:31 -0500
commit4fab2bee9c914b95601d8c5ebd06834575e4ba6a (patch)
tree2926c417a3b2bcd70c9ebb81e37e106a0bc3838b /rust/asm/build.sh
parent3b912e557767457e2b4715aa15997a9d25d18a09 (diff)
rust/asm: call rustc directly
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