1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 06:45:32 +00:00

fix: use musl-gcc for x86_64 cross-compilation in CI

The CI environment provides musl-gcc instead of x86_64-linux-musl-gcc.
Update cargo config to use the available linker to resolve the
"linker not found" error during cross-compilation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-06-08 20:14:13 -04:00
parent 170ce430f8
commit 0f2924cfc3
Failed to extract signature
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
[target.x86_64-unknown-linux-musl] [target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc" linker = "musl-gcc"
[target.aarch64-unknown-linux-musl] [target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc" linker = "aarch64-linux-gnu-gcc"

View file

@ -12,7 +12,7 @@ setup-cross-compile:
@mkdir -p .cargo @mkdir -p .cargo
@cat > .cargo/config.toml <<'EOF' @cat > .cargo/config.toml <<'EOF'
[target.x86_64-unknown-linux-musl] [target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc" linker = "musl-gcc"
[target.aarch64-unknown-linux-musl] [target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc" linker = "aarch64-linux-gnu-gcc"