diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-10-03 21:45:31 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-10-03 21:45:31 -0500 |
| commit | 4fab2bee9c914b95601d8c5ebd06834575e4ba6a (patch) | |
| tree | 2926c417a3b2bcd70c9ebb81e37e106a0bc3838b /rust/asm/build.sh | |
| parent | 3b912e557767457e2b4715aa15997a9d25d18a09 (diff) | |
rust/asm: call rustc directly
Diffstat (limited to 'rust/asm/build.sh')
| -rwxr-xr-x | rust/asm/build.sh | 5 |
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 |