Open
Description
It's possible to set target compilation architecture via RUSTFLAGS="-C target-cpu=<arch>"
.
As far as I can tell, the C compiler is not made aware of this, so it won't be producing matching binaries. It affects performance and I suspect it may also affect correctness when it affects C calling convention (newer SSE registers are used).
So I think it'd be best if the cc
crate detected Rust's compilation target and automatically configured the C compiler to match (abstracting away compiler-specific flags and possibly cpu arch naming mismatches, so that build scripts don't have to reinvent this).
Metadata
Metadata
Assignees
Labels
No labels