From 854e81c11dfc865584299515b70d0b91a5e4191b Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 7 Mar 2020 09:18:45 +0000 Subject: [PATCH] build fix for arm, adding native arch flag to be able to generate yield asm instruction. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c268b7a9..fffac46a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,6 +131,11 @@ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU|Intel") endif() endif() +# Architecture flags +if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") + list(APPEND mi_cflags -march=native) +endif() + # extra needed libraries if(WIN32) list(APPEND mi_libraries psapi shell32 user32 bcrypt)