From 0f2924cfc3684544bb2ca820db2a8bddfcf19983 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Sun, 8 Jun 2025 20:14:13 -0400 Subject: [PATCH] fix: use musl-gcc for x86_64 cross-compilation in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .cargo/config.toml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 744f9e2..b7eff86 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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" diff --git a/Makefile b/Makefile index fde86b5..f959099 100644 --- a/Makefile +++ b/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"