fix: riscv rust target is invalid

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
sisungo committed 2026-11-05 15:28:51 +00:00
1 parent 7ae32e99e0
commit 371bcf96cc
1 file changed
+4 -2
+4 -2
View File
@@ -4,8 +4,10 @@ import subprocess
from . import arch, make, pkgcomposer, logging
def _rust_triple(semios: str) -> str:
return semios.replace("-semios-linux", "-unknown-linux-musl")
def _rust_triple(s: str) -> str:
s = s.replace("-semios-linux", "-unknown-linux-musl")
s = s.replace("riscv64", "riscv64gc")
return s
def build(rem: list[str] = []):