ref: 0c7c856752defe7d7ecf0c1c0e838518fea1125c
parent: 3c8773ccf3d980587f6aeccee55a44200464e25a
parent: c4809f8559e3664e77c62a3e01b58c89c73f72bb
author: ruil2 <ruil2@cisco.com>
date: Fri May 18 07:43:02 EDT 2018
Merge pull request #2964 from GuangweiWang/linux-build-enhancement Linux-arm64 build enhancement
--- a/build/platform-linux.mk
+++ b/build/platform-linux.mk
@@ -18,6 +18,11 @@
ASMFLAGS += -march=armv7-a -mfpu=neon
endif
+ifeq ($(ASM_ARCH), arm64)
+CFLAGS += -march=armv8-a
+ASMFLAGS += -march=armv8-a
+endif
+
ifeq ($(CXX), clang++)
CXXFLAGS += -Wc++11-compat-reserved-user-defined-literal
endif