Added parallel compilation to bindings compilation. (#3173)

* Added parallel compilation to bindings compilation.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
QuantMint
2020-03-03 22:05:33 +01:00
committed by GitHub
parent d160dae635
commit 253900043d

View File

@@ -131,10 +131,12 @@ below.
To generate and compile the bindings, use this command (replacing ``<platform>``
with ``windows``, ``linux`` or ``osx`` depending on your OS):
To speed up compilation, add `-jN` at the end of the SCons command line where `N` is the number of CPU threads you have on your system. The example below uses 4 threads.
.. code-block:: none
cd godot-cpp
scons platform=<platform> generate_bindings=yes
scons platform=<platform> generate_bindings=yes -j4
cd ..
This step will take a while. When it is completed, you should have static