From 342347eda4c52efa92f0e6adcd3c7004f1e2b5d3 Mon Sep 17 00:00:00 2001 From: James Donald Date: Wed, 31 Jul 2019 16:55:55 -0700 Subject: [PATCH 1/2] Add -mfpu=neon to avoid vector assembly errors --- Sources/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/CMakeLists.txt b/Sources/CMakeLists.txt index 5b7d831..2f74511 100755 --- a/Sources/CMakeLists.txt +++ b/Sources/CMakeLists.txt @@ -104,6 +104,9 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") if(NOT PANDORA) add_compile_options(-march=native) endif() + if (CMAKE_SYSTEM_PROCESSOR MATCHES "^arm.*") + add_compile_options(-mfpu=neon) + endif() add_compile_options(-fno-strict-aliasing) add_definitions(-D_REENTRANT=1) add_definitions(-D_MT=1) From f2d6e31690bc3112b95a79c7ceac8b17457c5407 Mon Sep 17 00:00:00 2001 From: James Donald Date: Wed, 31 Jul 2019 17:01:38 -0700 Subject: [PATCH 2/2] Attempt to be consistent with spacing if() --- Sources/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CMakeLists.txt b/Sources/CMakeLists.txt index 2f74511..ac31117 100755 --- a/Sources/CMakeLists.txt +++ b/Sources/CMakeLists.txt @@ -104,7 +104,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") if(NOT PANDORA) add_compile_options(-march=native) endif() - if (CMAKE_SYSTEM_PROCESSOR MATCHES "^arm.*") + if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm.*") add_compile_options(-mfpu=neon) endif() add_compile_options(-fno-strict-aliasing)