From cb26f1af8b6025d0e0a148e2661aa5bd057d6947 Mon Sep 17 00:00:00 2001 From: Matteo Ceruti Date: Thu, 31 Aug 2023 18:17:33 +0200 Subject: Allow arm64 build ion macOS by using toolchain file apple.cmake and exporting an EVN-Variable OTR_OSX_ARCH=arm64 I build with after cloning the repo cd opentrack export OTR_OSX_ARCH=arm64 ; cmake --toolchain ./cmake/apple.cmake -S . -B build cd build make install --- gui/init.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui') diff --git a/gui/init.cpp b/gui/init.cpp index 5984269c..b666b4a9 100644 --- a/gui/init.cpp +++ b/gui/init.cpp @@ -50,8 +50,10 @@ static void set_fp_mask() #endif #ifdef __APPLE__ +#if defined __i386__ || defined __x86_64__ fesetenv(FE_DFL_DISABLE_SSE_DENORMS_ENV); #endif +#endif #ifdef _WIN32 # ifdef __clang__ -- cgit v1.2.3