-march=native versus x86-64-v3 for heterogeneous x86-64 deployment targets
The goal is to compile x86-64 binaries that exploit AVX2, BMI2, and FMA while remaining safe to execute across a deployment fleet whose exact CPU mix is not fully known or controlled. The build environment may differ from production, and cloud or virtualized targets can expose a subset of host features. Two documented approaches create a trade-off. Using -ma