chore: track .cargo/config.toml (target-cpu=native build config)
- Update .gitignore to allow .cargo/config.toml while ignoring other .cargo contents - Include the target-cpu=native config that was created in previous commit but missed due to .gitignore
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# ── Build-time CPU optimisation ────────────────────────────────────────
|
||||
# Compile for the host CPU so BLAKE3 SIMD (AVX2 / AVX-512 / NEON),
|
||||
# image processing and crypto routines use the fastest available
|
||||
# instructions. Works on x86-64 (Intel/AMD) and ARM (Apple Silicon,
|
||||
# Raspberry Pi) — the compiler auto-detects the local CPU features.
|
||||
#
|
||||
# NOTE: the resulting binary is NOT portable to CPUs with fewer
|
||||
# features than the build host. For portable Docker images, override
|
||||
# with: RUSTFLAGS="-C target-cpu=x86-64-v3" (AVX2, most servers).
|
||||
|
||||
[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))']
|
||||
rustflags = ["-C", "target-cpu=native"]
|
||||
+3
-2
@@ -17,8 +17,9 @@
|
||||
*.su
|
||||
*.idb
|
||||
|
||||
# Build cache
|
||||
.cargo/
|
||||
# Build cache (keep .cargo/config.toml for project build settings)
|
||||
.cargo/*
|
||||
!.cargo/config.toml
|
||||
|
||||
# Visual Studio Code directory
|
||||
.vscode/
|
||||
|
||||
Reference in New Issue
Block a user