Skip to content

Commit 50b3737

Browse files
fix: remove target-cpu=native from tracked cargo config
.cargo/config.toml set target-cpu=native for x86_64-unknown-linux-gnu, causing SIGILL in CI when build scripts compiled with AVX instructions ran on runners without AVX support. rust-cache amplified this by sharing binaries across runners with different CPU feature sets. Move .cargo/ to .gitignore so developers can opt into target-cpu=native locally without affecting CI builds.
1 parent 5cc03e9 commit 50b3737

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

.cargo/config.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ rustflags = ["-C", "target-cpu=native"]
33

44
[target.aarch64-apple-darwin]
55
rustflags = ["-C", "target-cpu=native"]
6-
7-
[target.x86_64-unknown-linux-gnu]
8-
rustflags = ["-C", "target-cpu=native"]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ z-ai/
1313
.claude/
1414
*.DS_Store
1515
site/
16+
.cargo/

0 commit comments

Comments
 (0)