summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorMatteo Ceruti <matteo.ceruti@gmail.com>2023-08-31 18:17:33 +0200
committerMatteo Ceruti <matteo.ceruti@gmail.com>2023-08-31 18:54:01 +0200
commitcb26f1af8b6025d0e0a148e2661aa5bd057d6947 (patch)
tree39d2b196ee017feaa7adb382fca64497f9bad715 /gui
parentb04381b44e4fbbfcf88e5e74052464657cf7df25 (diff)
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
Diffstat (limited to 'gui')
-rw-r--r--gui/init.cpp2
1 files changed, 2 insertions, 0 deletions
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__