Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
include(SIMDExt)
if(HAVE_INTEL)
- set(CMAKE_ASM_COMPILER ${PROJECT_SOURCE_DIR}/src/yasm-wrapper)
if(APPLE)
set(object_format "macho64")
else()
set(object_format "elf64")
endif()
set(CMAKE_ASM_FLAGS "-f ${object_format}")
+ set(CMAKE_ASM_COMPILER ${PROJECT_SOURCE_DIR}/src/yasm-wrapper)
if(NOT WIN32)
# The native tools might be located even when cross compiling, which
# might not work in this case (especially when targeting Windows).