Commit 59bb1ea
committed
Fix SIGILL in CI: pin Mojo target to x86-64-v3 (AVX2)
The codspeed benchmark runner crashed with exit code 132 (SIGILL)
because `mojo build --emit object` defaults to the native CPU, which
may emit AVX-512 or other instructions the CI runner doesn't support.
Adds MOJO_MCPU env var (defaults to "native") that build.rs passes
as `--mcpu` to the Mojo compiler. CI sets it to "x86-64-v3" (AVX2
baseline) to match the existing RUSTFLAGS="-C target-feature=+avx2".
Signed-off-by: Claude <noreply@anthropic.com>
https://claude.ai/code/session_01EVcJZP4ZmfvWRRg2CsgvST1 parent 6bfda92 commit 59bb1ea
3 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| 754 | + | |
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | | - | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
0 commit comments