From b9dbfe0931dace71ad3e9486dfce6340027b6f63 Mon Sep 17 00:00:00 2001 From: yage Date: Thu, 28 Nov 2019 20:14:44 +0800 Subject: [PATCH] Update doc for building on OSX (#5074) Co-Authored-By: Jiaming Yuan --- doc/build.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/build.rst b/doc/build.rst index 311371dd4..93aff0d6b 100644 --- a/doc/build.rst +++ b/doc/build.rst @@ -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 -------------------------------------------- -Obtain ``gcc-8`` from Homebrew: +Obtain ``gcc-9`` and ``OpenMP`` from Homebrew: .. code-block:: bash - brew install gcc@8 + brew install gcc@9 libomp + 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 cd build - CC=gcc-8 CXX=g++-8 cmake .. + CC=gcc-9 CXX=g++-9 cmake .. make -j4 You may now continue to `Python Package Installation`_.