cmake : fix ARM feature verification (#17170)
* cmake : fix ARM feature verification
Use check_cxx_source_compiles to prevent conflicts with
the existing GGML_NATIVE detection code.
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* cmake : unset __ARM_FEATURE when feature is disabled
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* cmake : fix scope, this is really a macro
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* arm_neon.h is useless
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
---------
Signed-off-by: Adrien Gallouët <angt@huggingface.co>