Skip to content

fix: scope rustflags to target triple to avoid SIGILL in build scripts#91

Merged
ewels merged 1 commit intomainfrom
fix/simd-target-scoped-rustflags
Apr 9, 2026
Merged

fix: scope rustflags to target triple to avoid SIGILL in build scripts#91
ewels merged 1 commit intomainfrom
fix/simd-target-scoped-rustflags

Conversation

@ewels
Copy link
Copy Markdown
Member

@ewels ewels commented Apr 9, 2026

Summary

  • build.rustflags from fix: use build.rustflags config to avoid SIGILL in SIMD builds #90 still applies to build scripts, so the AVX-512 SIGILL persists
  • Switch to target.'<triple>'.rustflags which only affects compilation for the specified target, leaving host build scripts unaffected
  • Hoist host triple detection to a dedicated CI step to avoid duplication

Test plan

  • CI passes (linux-x86_64-v3 SIMD build)
  • Re-run v0.2.0 release and verify x86-64-v4 binary and Docker builds succeed

🤖 Generated with Claude Code

The previous fix (#90) switched from RUSTFLAGS to build.rustflags, but
build.rustflags still applies to build scripts. Use target-scoped
rustflags (target.'<triple>'.rustflags) so CPU flags only affect crate
compilation, leaving host build scripts unaffected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ewels ewels merged commit 320fd01 into main Apr 9, 2026
7 checks passed
@ewels ewels deleted the fix/simd-target-scoped-rustflags branch April 9, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant