Merge pull request #1679 from Ryozuki/patch-4

Set make -j to use actual number of threads on readme
This commit is contained in:
Dennis Felsing 2019-04-25 21:02:00 +02:00 committed by GitHub
commit 4e3099db6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,9 +33,9 @@ To compile DDNet yourself, execute the following commands in the source root:
mkdir build
cd build
cmake ..
make -j8
make -j$(nproc)
Pass the number of threads for compilation to `make -j`. DDNet requires additional libraries, that are bundled for the most common platforms (Windows, Mac, Linux, all x86 and x86\_64). The bundled libraries are now in the ddnet-libs submodule.
Pass the number of threads for compilation to `make -j`. `$(nproc)` in this case returns the number of processing units. DDNet requires additional libraries, that are bundled for the most common platforms (Windows, Mac, Linux, all x86 and x86\_64). The bundled libraries are now in the ddnet-libs submodule.
You can install the required libraries on your system, `touch CMakeLists.txt` and CMake will use the system-wide libraries by default. You can install all required dependencies and CMake on Debian or Ubuntu like this: