Skip to content

Commit ae6f721

Browse files
committed
revert: target-cpu=x86-64-v4 (Railway + Claude backend always AVX-512)
GitHub CI: override with CARGO_BUILD_RUSTFLAGS="-C target-cpu=x86-64-v3" https://claude.ai/code/session_01M3at4EuHVvQ8S95mSnKgtK
1 parent 1b28547 commit ae6f721

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.cargo/config.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
[build]
2-
# target-cpu=native: uses whatever the build machine supports.
3-
# Local dev machines with AVX-512: get __m512d native instructions.
4-
# GitHub CI (no AVX-512): falls back to AVX2/SSE4.2 automatically.
5-
# The code uses cfg(target_feature = "avx512f") for compile-time dispatch.
6-
rustflags = ["-C", "target-cpu=native"]
2+
# x86-64-v4 = AVX-512 mandatory. Railway + Claude backend = always AVX-512.
3+
# GitHub CI: set CARGO_BUILD_RUSTFLAGS="-C target-cpu=x86-64-v3" for AVX2 fallback.
4+
rustflags = ["-C", "target-cpu=x86-64-v4"]

0 commit comments

Comments
 (0)