fix(ci): let zig handle CRT object files via link-self-contained=no
Some checks failed
Build MIPS Binary / build (push) Has been cancelled
Some checks failed
Build MIPS Binary / build (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user