From 9c1008bdd2bcb12799503206a7b5b91a4a62caa5 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 16 Nov 2021 22:34:42 +0100 Subject: [PATCH] (RPi) Fixed an invalid compiler flag on aarch64. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c03021cb5..7ad8a0e7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,8 +188,10 @@ else() endif() # Raspberry Pi model 3 and higher (ARM Cortex-A53 minimum). -if(BCMHOST) +if(RPI_32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic -mcpu=cortex-a53 -mfpu=neon-fp-armv8") +elseif(RPI_64) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic -mcpu=cortex-a53") endif() if(ASAN AND TSAN)