diff options
Diffstat (limited to 'cmake/toolchains/arm-linux-gnueabihf.cmake')
-rw-r--r-- | cmake/toolchains/arm-linux-gnueabihf.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/toolchains/arm-linux-gnueabihf.cmake b/cmake/toolchains/arm-linux-gnueabihf.cmake index 8051f0d..7448f54 100644 --- a/cmake/toolchains/arm-linux-gnueabihf.cmake +++ b/cmake/toolchains/arm-linux-gnueabihf.cmake @@ -23,7 +23,14 @@ if("${CROSS}" STREQUAL "") set(CROSS arm-linux-gnueabihf-) endif() -set(CMAKE_CXX_COMPILER ${CROSS}g++) +# For c_decoder_test.c and c_version_test.c. +if(NOT CMAKE_C_COMPILER) + set(CMAKE_C_COMPILER ${CROSS}gcc) +endif() +set(CMAKE_C_FLAGS_INIT "-march=armv7-a -marm") +if(NOT CMAKE_CXX_COMPILER) + set(CMAKE_CXX_COMPILER ${CROSS}g++) +endif() set(CMAKE_CXX_FLAGS_INIT "-march=armv7-a -marm") set(CMAKE_SYSTEM_PROCESSOR "armv7") set(LIBGAV1_NEON_INTRINSICS_FLAG "-mfpu=neon") |