diff options
Diffstat (limited to 'cmake/toolchains/arm-linux-gnueabihf.cmake')
-rw-r--r-- | cmake/toolchains/arm-linux-gnueabihf.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/toolchains/arm-linux-gnueabihf.cmake b/cmake/toolchains/arm-linux-gnueabihf.cmake index 7448f54..7d58ce1 100644 --- a/cmake/toolchains/arm-linux-gnueabihf.cmake +++ b/cmake/toolchains/arm-linux-gnueabihf.cmake @@ -27,10 +27,13 @@ endif() if(NOT CMAKE_C_COMPILER) set(CMAKE_C_COMPILER ${CROSS}gcc) endif() -set(CMAKE_C_FLAGS_INIT "-march=armv7-a -marm") +# Note: -march=armv7-a+fp is an alternative to -mfpu with newer versions of +# gcc: +# https://gcc.gnu.org/git/?p=gcc.git&a=commit;h=dff2abcbee65dbb4b7ca3ade0f7622ffdc0af391 +set(CMAKE_C_FLAGS_INIT "-march=armv7-a -marm -mfpu=vfpv3") if(NOT CMAKE_CXX_COMPILER) set(CMAKE_CXX_COMPILER ${CROSS}g++) endif() -set(CMAKE_CXX_FLAGS_INIT "-march=armv7-a -marm") +set(CMAKE_CXX_FLAGS_INIT "-march=armv7-a -marm -mfpu=vfpv3") set(CMAKE_SYSTEM_PROCESSOR "armv7") set(LIBGAV1_NEON_INTRINSICS_FLAG "-mfpu=neon") |