(RPi) Added some compiler optimization flags.

This commit is contained in:
Leon Styhre 2021-11-16 17:34:11 +01:00
parent a5e10a6434
commit 7f5fe3fcbf

View file

@ -186,6 +186,11 @@ else()
endif() endif()
endif() endif()
# Raspberry Pi model 3 and higher (ARM Cortex-A53 minimum).
if(BCMHOST)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic -mcpu=cortex-a53 -mfpu=neon-fp-armv8")
endif()
if(ASAN AND TSAN) if(ASAN AND TSAN)
message(FATAL_ERROR "-- AddressSanitizer and ThreadSanitizer can't be combined") message(FATAL_ERROR "-- AddressSanitizer and ThreadSanitizer can't be combined")
endif() endif()