diff options
author | Alexander Harkness <me@bearbin.net> | 2020-08-06 18:13:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 18:13:47 +0200 |
commit | fd52d8e8df2e8e23f7c308175a7151290f086458 (patch) | |
tree | f6d05bce38bb66c7cd99bc7863742d86242fa468 /COMPILING.md | |
parent | Revert "Hotpatch optional for macOSX builds on buildserver" (diff) | |
download | cuberite-fd52d8e8df2e8e23f7c308175a7151290f086458.tar cuberite-fd52d8e8df2e8e23f7c308175a7151290f086458.tar.gz cuberite-fd52d8e8df2e8e23f7c308175a7151290f086458.tar.bz2 cuberite-fd52d8e8df2e8e23f7c308175a7151290f086458.tar.lz cuberite-fd52d8e8df2e8e23f7c308175a7151290f086458.tar.xz cuberite-fd52d8e8df2e8e23f7c308175a7151290f086458.tar.zst cuberite-fd52d8e8df2e8e23f7c308175a7151290f086458.zip |
Diffstat (limited to 'COMPILING.md')
-rw-r--r-- | COMPILING.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/COMPILING.md b/COMPILING.md index e30ec1e3b..a9ebaf5d9 100644 --- a/COMPILING.md +++ b/COMPILING.md @@ -256,6 +256,19 @@ Forces the build to use 32 bit builds on *nix systems. Define as ON to enable. D ###### NO_NATIVE_OPTIMIZATION Disables optimizations for the build host. This is important when building on a different machine from the one you will run Cuberite on as the build machine may support instructions the final machine does not. This flag only has any effect on linux. Define as ON to enable. Define as OFF to disable. +###### DISABLE_SYSTEM_LUA +Disables use of the system lua, uses a compiled version instead. Useful if compiling on a system that doesn't already have lua installed. This option is incompatible with cross-compilation. + +###### UNITY_BUILDS +Controls use of unity builds, an optimisation that improves compile times at the expense of system compatibility and error message utility. Some systems may need to have this disabled in order to compile properly. Unity builds are only supported on CMake versions >= 3.16, if you have an old version unity builds will always be disabled and this flag has no effect. + +###### PRECOMPILE_HEADERS +Controls use of precompiled headers, an optimisation that improves compile times at the expense of system compatibility. Some systems may need to have this disabled in order to compile properly. Precompiled headers are only supported on CMake versions >= 3.16, if you have an old version precompiled headers will always be disabled and this flag has no effect. + +###### WHOLE_PROGRAM_OPTIMISATION +Controls use of link time optimisation (LTO), which slightly improves the generated binary file at the expense of compilation speed and system compatibility. Some systems may need to have this disabled in order to compile properly. + + [1]: https://www.visualstudio.com/downloads/ [2]: https://cmake.org/download/ [3]: https://git-for-windows.github.io/ |