-
Notifications
You must be signed in to change notification settings - Fork 0
Remove target-cpu=native from .cargo/config.toml for portable builds #27
Copy link
Copy link
Open
Labels
code qualityStatic analysis, lints, and code standardsStatic analysis, lints, and code standardsperformancePerformance benchmarks and optimizationPerformance benchmarks and optimization
Description
Description
.cargo/config.toml sets rustflags = ["-C", "target-cpu=native"] for release builds. While this optimizes for the build machine, it produces binaries that may not run on other CPUs and can cause illegal instruction errors.
Proposed Changes
- Remove
target-cpu=nativefrom.cargo/config.toml - Document it as an optional flag users can set locally for maximum performance
- Keep it only in a developer-facing profile or CI benchmark job if needed
Impact
Ensures published binaries and crates are portable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
code qualityStatic analysis, lints, and code standardsStatic analysis, lints, and code standardsperformancePerformance benchmarks and optimizationPerformance benchmarks and optimization