Update rust.yml (#14)

compile for aarch64
This commit is contained in:
Sijie.Sun
2024-02-06 16:19:42 +08:00
committed by GitHub
parent 7f8935a9d5
commit 4f98dd097c
2 changed files with 40 additions and 8 deletions

View File

@@ -1,4 +1,7 @@
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = ["-C", "target-feature=+crt-static"]
[target.'cfg(all(windows, target_env = "msvc"))']
rustflags = ["-C", "target-feature=+crt-static"]