Files
improvise/.cargo/config.toml
Edward Langley e3078ba61d fix: make nix flake and cargo config portable across Linux and macOS
musl tooling is Linux-only, so guard it behind an isLinux check in
flake.nix and remove the hardcoded musl build target from .cargo/config.toml
(the nix devShell already sets CARGO_BUILD_TARGET on Linux).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 22:22:11 -07:00

14 lines
607 B
TOML

# The nix devShell sets CARGO_BUILD_TARGET=x86_64-unknown-linux-musl
# and the matching linker env vars, so no [build] target is needed here.
# This keeps the config portable across Linux and macOS.
[target.x86_64-unknown-linux-gnu]
# Use gcc (not rust-lld) for host-target build scripts on NixOS.
# rust-lld bundled with rust-overlay can't resolve glibc symbols on NixOS.
linker = "gcc"
[target.x86_64-unknown-linux-musl]
# Linker is provided via CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER
# in the nix devShell. Outside nix, musl-gcc must be in PATH.
rustflags = ["-C", "target-feature=+crt-static"]