Skip to content

Commit 30b15ae

Browse files
claudebranchseer
authored andcommitted
revert: undo -crt-static changes in .cargo/config.toml
Keep dynamic musl linking only in CI RUSTFLAGS, not in the shared cargo config. https://claude.ai/code/session_01R3RoGqPDBRtNa2NRg3SeBM
1 parent d5c2b1b commit 30b15ae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.cargo/config.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ bindeps = true
66

77
# Linker wrappers for musl targets. On Linux hosts these use the system cc directly;
88
# on non-Linux hosts (macOS, Windows) they cross-compile via cargo-zigbuild.
9-
# -crt-static: link musl dynamically so fspy preload .so can be injected into
10-
# host processes that are themselves dynamically linked (e.g. node on Alpine).
119
[target.x86_64-unknown-linux-musl]
12-
rustflags = ["-C", "target-feature=-crt-static", "-C", "linker=.cargo/zigcc-x86_64-unknown-linux-musl"]
10+
rustflags = ["-C", "linker=.cargo/zigcc-x86_64-unknown-linux-musl"]
1311

1412
[target.aarch64-unknown-linux-musl]
15-
rustflags = ["-C", "target-feature=-crt-static", "-C", "linker=.cargo/zigcc-aarch64-unknown-linux-musl"]
13+
rustflags = ["-C", "linker=.cargo/zigcc-aarch64-unknown-linux-musl"]

0 commit comments

Comments
 (0)