> Non-Goals
> It is not a goal to support cross-compilation. Code compiled in a training run must run on the same CPU architecture, with the same set of features, in subsequent production runs.
IMHO, that would be much better than running into crashes and having to figure out the cause yourself.
Instead, this AOT feature is not very ergonomic to use at all, with too many pitfalls to be of broad use IMO.
I think other AOT-compiled languages don't opt in for the lowest set of CPU features -- they just detect them at runtime and use whenever present, all in compiled machine code.
https://doc.rust-lang.org/beta/core/arch/#dynamic-cpu-featur...
JMKH42•30m ago