Update doc for building on OSX (#5074)
Co-Authored-By: Jiaming Yuan <jm.yuan@outlook.com>
This commit is contained in:
parent
9f52e834dc
commit
b9dbfe0931
@ -115,11 +115,12 @@ You might need to run the command with ``--user`` flag if you run into permissio
|
|||||||
Build from the source code - advanced method
|
Build from the source code - advanced method
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
|
|
||||||
Obtain ``gcc-8`` from Homebrew:
|
Obtain ``gcc-9`` and ``OpenMP`` from Homebrew:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
brew install gcc@8
|
brew install gcc@9 libomp
|
||||||
|
|
||||||
|
|
||||||
Now clone the repository:
|
Now clone the repository:
|
||||||
|
|
||||||
@ -133,7 +134,7 @@ Create the ``build/`` directory and invoke CMake. Make sure to add ``CC=gcc-8 CX
|
|||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
CC=gcc-8 CXX=g++-8 cmake ..
|
CC=gcc-9 CXX=g++-9 cmake ..
|
||||||
make -j4
|
make -j4
|
||||||
|
|
||||||
You may now continue to `Python Package Installation`_.
|
You may now continue to `Python Package Installation`_.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user