Commit b1ec44fa authored by fanliwen's avatar fanliwen
Browse files

specify AppleClang >= 9.0

parent 07dad29c
......@@ -87,10 +87,10 @@ Also you may want to read `gcc Tips <./gcc-Tips.rst>`__.
macOS
~~~~~
LightGBM can use Apple Clang, or GCC/G++ to build in macOS.
LightGBM can use Apple Clang (9.0 or higher), or GCC/G++ to build in macOS.
Apple Clang
***********
Apple Clang (9.0 or higher)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
1. Install `CMake`_ (3.12 or higher).
......@@ -105,7 +105,7 @@ Apple Clang
make -j4
GCC/G++
*******
^^^^^^^
Please install **gcc/g++** by using the following commands:
......@@ -348,7 +348,25 @@ LightGBM uses **CMake** to build. Run the following commands:
macOS
^^^^^
LightGBM depends on **OpenMP** for compiling, which isn't supported by Apple Clang.
LightGBM can use Apple Clang (9.0 or higher), or GCC/G++ to build in macOS.
Apple Clang (9.0 or higher)
***************************
1. Install `CMake`_ (3.12 or higher).
2. Run the following commands:
.. code::
brew install libomp
git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build
cmake -DUSE_HDFS=ON ..
make -j4
GCC/G++
*******
Please install **gcc/g++** by using the following commands:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment