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:
parent
170ce430f8
commit
0f2924cfc3
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[target.x86_64-unknown-linux-musl]
|
||||
linker = "x86_64-linux-musl-gcc"
|
||||
linker = "musl-gcc"
|
||||
|
||||
[target.aarch64-unknown-linux-musl]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -12,7 +12,7 @@ setup-cross-compile:
|
|||
@mkdir -p .cargo
|
||||
@cat > .cargo/config.toml <<'EOF'
|
||||
[target.x86_64-unknown-linux-musl]
|
||||
linker = "x86_64-linux-musl-gcc"
|
||||
linker = "musl-gcc"
|
||||
|
||||
[target.aarch64-unknown-linux-musl]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue