perf: backend derleme süreci kök dizine taşınarak workspace optimizasyonları aktif edildi
All checks were successful
Build MIPS Binary / build (push) Successful in 4m30s

This commit is contained in:
spinline
2026-02-08 18:10:09 +03:00
parent 3f08b5b54a
commit 40be58f2fc
2 changed files with 7 additions and 7 deletions

View File

@@ -43,13 +43,12 @@ jobs:
- name: Build Backend (MIPS)
env:
# Ensure we are building a fully static binary
# -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 -C link-arg=-msoft-float"
# -s: Sembolleri siler, -w: DWARF debug bilgilerini siler (Binary boyutunu devasa düşürür)
RUSTFLAGS: "-C target-feature=+crt-static -C link-self-contained=no -C link-arg=-msoft-float -C link-arg=-s -C link-arg=-w"
CFLAGS_mips_unknown_linux_musl: "-msoft-float"
run: |
cd backend
cargo zigbuild --target mips-unknown-linux-musl --release -Z build-std=std,panic_abort
# Kök dizinden derleyerek workspace profil ayarlarının (LTO, z, strip) uygulanmasını sağlıyoruz
cargo zigbuild -p backend --target mips-unknown-linux-musl --release -Z build-std=std,panic_abort
file target/mips-unknown-linux-musl/release/backend
- name: Rename Binary

View File

@@ -5,10 +5,11 @@ resolver = "2"
# Optimize for size (aggressive)
[profile.release]
opt-level = "z"
lto = true
lto = "fat" # Full LTO (En iyisi)
codegen-units = 1
panic = "abort"
strip = true
strip = "symbols" # Sembolleri temizle
incremental = false # Incremental build'i kapat (Boyut için daha iyi)
[patch.crates-io]
coarsetime = { path = "third_party/coarsetime" }