mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Add note for compiling with multiple jobs (#948)
* Fix overread in projectile behavior * Fix stuns * Correctly read in bitStream * Fix projectile behavior * Address movement type issues * Update shutdown time to be accurate * Fix small issues * Fix missing template * Add note for compile jobs
This commit is contained in:
parent
7418e02365
commit
14085d09bd
@ -172,6 +172,10 @@ You can either run `build.sh` when in the root folder of the repository:
|
|||||||
|
|
||||||
Or manually run the commands used in [build.sh](build.sh).
|
Or manually run the commands used in [build.sh](build.sh).
|
||||||
|
|
||||||
|
If you would like to build the server faster, append `-j<number>` where number is the number of simultaneous compile jobs to run at once. It is recommended that you have this number always be 1 less than your core count to prevent slowdowns. The command would look like this if you would build with 4 jobs at once:
|
||||||
|
```bash
|
||||||
|
./build.sh -j4
|
||||||
|
```
|
||||||
### Notes
|
### Notes
|
||||||
Depending on your operating system, you may need to adjust some pre-processor defines in [CMakeVariables.txt](./CMakeVariables.txt) before building:
|
Depending on your operating system, you may need to adjust some pre-processor defines in [CMakeVariables.txt](./CMakeVariables.txt) before building:
|
||||||
* If you are on MacOS, ensure OPENSSL_ROOT_DIR is pointing to the openssl root directory.
|
* If you are on MacOS, ensure OPENSSL_ROOT_DIR is pointing to the openssl root directory.
|
||||||
|
2
build.sh
2
build.sh
@ -9,5 +9,5 @@ cd build
|
|||||||
cmake ..
|
cmake ..
|
||||||
|
|
||||||
# To build utilizing multiple cores, append `-j` and the amount of cores to utilize, for example `cmake --build . --config Release -j8'
|
# To build utilizing multiple cores, append `-j` and the amount of cores to utilize, for example `cmake --build . --config Release -j8'
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release $1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user