Change the compiler option for ARM.

This commit is contained in:
Zhang Xianyi 2015-05-04 19:41:36 +00:00
parent 0ce95b55ec
commit 13278d3fef
4 changed files with 15 additions and 0 deletions

View File

@ -66,6 +66,9 @@ if(WIN32)
set(OS_WINDOWS 1)
endif()
#load architecture config file (OPTIONAL)
include("${PROJECT_SOURCE_DIR}/config/${OpenVML_ARCH}.cmake" OPTIONAL)
configure_file (
"${PROJECT_SOURCE_DIR}/include/openvml_config.h.in"
"${PROJECT_BINARY_DIR}/include/openvml_config.h"

5
config/arm.cmake Normal file
View File

@ -0,0 +1,5 @@
#Use hard float-abi and ARMV7-A
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=hard")
#ARMV7-A
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv7-a")

View File

@ -1 +1,5 @@
include(${OpenVML_ARCH}/Kernel_generic.txt)
set(OpenVML_KERNEL_COMPILE_FLAGS -mtune=cortex-a15)
#set(exp_S_KERNEL_SOURCE ${OpenVML_ARCH}/sexp_kernel_neon.c)

View File

@ -1 +1,4 @@
include(${OpenVML_ARCH}/Kernel_generic.txt)
set(OpenVML_KERNEL_COMPILE_FLAGS -mtune=cortex-a9)