mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
GH-1496: Fix build on armv7 architecture
This commit is contained in:
parent
25dcf210b1
commit
28a150246a
1 changed files with 12 additions and 0 deletions
|
@ -362,6 +362,18 @@ set(HH_SRCS
|
||||||
)
|
)
|
||||||
|
|
||||||
if (${COMPILER_ARCHITECTURE} STREQUAL "arm")
|
if (${COMPILER_ARCHITECTURE} STREQUAL "arm")
|
||||||
|
check_c_source_compiles("
|
||||||
|
#if defined(__ARM_NEON__) || defined(__ARM_NEON)
|
||||||
|
int main() { return 0; }
|
||||||
|
#else
|
||||||
|
#error
|
||||||
|
#endif
|
||||||
|
" test_arm_neon)
|
||||||
|
|
||||||
|
if (test_arm_neon)
|
||||||
|
list(APPEND HH_SRCS ../auxil/highwayhash/highwayhash/hh_neon.cc)
|
||||||
|
endif ()
|
||||||
|
|
||||||
set_source_files_properties(${HH_SRCS} PROPERTIES COMPILE_FLAGS
|
set_source_files_properties(${HH_SRCS} PROPERTIES COMPILE_FLAGS
|
||||||
-mfloat-abi=hard -march=armv7-a -mfpu=neon)
|
-mfloat-abi=hard -march=armv7-a -mfpu=neon)
|
||||||
elseif (${COMPILER_ARCHITECTURE} STREQUAL "aarch64")
|
elseif (${COMPILER_ARCHITECTURE} STREQUAL "aarch64")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue