1
0

Update COMPILING

This commit is contained in:
Alexander Harkness 2013-12-21 14:14:30 +00:00
parent 3dbc1a7e8a
commit 294e629600

View File

@ -1,8 +1,18 @@
COMPILING COMPILING
========= =========
To compile MCServer on *nix, you need a GNUmake-compatible make that reads GNUmakefile. To compile MCServer on *nix, you need CMake and make, as well as a C compiler, C++ compiler and linker.
Run "make" to build a debug version (slow, but gives more info on crash)
Run "make release=1" to build a release version (fast, less info on crash) Release Mode
Add addm32=1 to compile in 32-bit mode on 64-bit systems. ------------
Add `-j 4` to use 4 threads and speed up compilation on multi-core devices.
Release mode is preferred for almost all cases, it has much better speed and less console spam. However, if you are developing MCServer actively, debug mode might be better.
cmake . && make
Debug Mode
----------
Debug mode is useful if you want more debugging information about MCServer as it's running or if you want to use a debugger like GDB to debug issues and crashes.
cmake . -DCMAKE_BUILD_TYPE=DEBUG && make