Added CPU architecture variable info to BUILD_LINUX.md

This commit is contained in:
ksuprynowicz 2021-10-30 15:15:28 +02:00 committed by GitHub
parent ac984d5e06
commit a31350678f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,3 +171,9 @@ If your goal is to set up a development environment, it is desirable to set the
directory that vcpkg builds into with the `HIFI_VCPKG_BASE` environment variable.
For example, you might set `HIFI_VCPKG_BASE` to `/home/$USER/vcpkg`.
By default, vcpkg will build in the system `/tmp` directory.
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".