fix(ci): let zig handle CRT object files via link-self-contained=no
Some checks failed
Build MIPS Binary / build (push) Has been cancelled

This commit is contained in:
spinline
2026-02-07 00:04:48 +03:00
parent 18001ed5a2
commit c2492b2749

View File

@@ -33,7 +33,8 @@ jobs:
- name: Build Backend (MIPS) - name: Build Backend (MIPS)
env: env:
# Ensure we are building a fully static binary # Ensure we are building a fully static binary
RUSTFLAGS: "-C target-feature=+crt-static" # -C link-self-contained=no: Let Zig (the linker) handle CRT objects (crt1.o, etc.)
RUSTFLAGS: "-C target-feature=+crt-static -C link-self-contained=no"
run: | run: |
cd backend cd backend
cargo zigbuild --target mips-unknown-linux-musl --release -Z build-std=std,panic_abort cargo zigbuild --target mips-unknown-linux-musl --release -Z build-std=std,panic_abort