Gunnar

nordisk/znippy

.cargo/config.toml

[build]
target-dir = "/home/rickard/.cache/znippy-target"

# Build for the building machine's native ISA (AVX2/BMI2/FMA on the 3975WX).
# Safe because build==run for a from-source workspace build, and this file is
# NOT part of any published crate package, so crates.io consumers are unaffected.
# Recovers the SIMD width LLVM otherwise can't assume on the default SSE2 target
# (e.g. linflate's match-copy, the stree node compares). Override per-invocation
# with `RUSTFLAGS=...` if you need a portable binary.
#
# MUST live under [target.<triple>] (NOT [build]): cargo's rustflags precedence is
# target.<triple> > build, and it uses only the highest-precedence key — it does
# NOT merge across them. The global ~/.cargo/config.toml sets the mold linker under
# target.x86_64-unknown-linux-gnu, so a [build] rustflags here would be SHADOWED
# (silently dropping target-cpu=native → baseline SSE2). Same key → cargo merges
# the arrays, so we get mold AND native together.
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=native"]

[alias]
xtask = "run --package xtask --"