From f2e4c4daa2679bd22185e2301f14dd514200e1f2 Mon Sep 17 00:00:00 2001 From: ksuprynowicz Date: Sat, 30 Oct 2021 15:17:49 +0200 Subject: [PATCH] Update BUILD_OSX.md --- BUILD_OSX.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BUILD_OSX.md b/BUILD_OSX.md index ee14b3b24e..e1fb030e39 100644 --- a/BUILD_OSX.md +++ b/BUILD_OSX.md @@ -64,6 +64,14 @@ You can append `-j4` to assign more threads to build with. The number indicates To package the installation, you can simply run `make package` afterwards. +## Notes + +If build is intended for packaging or creation of AppImage, `VIRCADIA_CPU_ARCHITECTURE` +CMake variable needs to be set to architecture specific value. +It defaults to `-march=native -mtune=native`, which yields builds optimized for particular +machine, but builds will not work on machines lacking same CPU instructions. +For packaging and AppImage it is recommended to set it to different value, for example `-msse3`. + ## FAQ 1. **Problem:** Running the scheme `interface.app` from Xcode causes a crash for Interface related to `libgl`.