Compile-Time Target CPU Feature Detection in C
terroir.systems
1 thread
Personally I prefer run-time detection since that means the same binary can run on multiple different generations of processor, and it's much less confusing for the user who may not even know what a CPU is or which one they have.