ACL: Add coding-style-patch-verification and indent.
[vpp.git] / src / configure.ac
index 8b79cff..ee4985b 100644 (file)
@@ -160,6 +160,17 @@ AC_ARG_WITH(pre-data,
                *) with_pre_data="pre-data-not-set" ;;
             esac], [with_pre_data=128])
 
+###############################################################################
+# Target CPU flags
+###############################################################################
+
+AS_CASE([$build_cpu],
+       [x86_64], [CPU_FLAGS="-march=corei7 -mtune=corei7-avx"],
+       [aarch64], [CPU_FLAGS="-march=armv8-a+crc"],
+       [CPU_FLAGS=""],
+)
+AC_SUBST([CPU_FLAGS])
+
 ###############################################################################
 # Substitutions and defines
 ###############################################################################