mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 09:02:40 +00:00
contrib/local.mk.example: Misc. improvements
- Mention how to disable jemalloc during compilation - Mention using additional CFLAGS during compilation
This commit is contained in:
@@ -4,16 +4,25 @@
|
|||||||
# By default, the installation prefix is '/usr/local'.
|
# By default, the installation prefix is '/usr/local'.
|
||||||
# CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_PREFIX=/usr/local/neovim-latest
|
# CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_PREFIX=/usr/local/neovim-latest
|
||||||
|
|
||||||
|
# These CFLAGS can be used in addition to those specified in CMakeLists.txt:
|
||||||
|
# CMAKE_EXTRA_FLAGS="-DCMAKE_C_FLAGS=-ftrapv -Wlogical-op"
|
||||||
|
|
||||||
|
# By default, the jemalloc family of memory allocation functions are used.
|
||||||
|
# Uncomment the following to instead use libc memory allocation functions:
|
||||||
|
# CMAKE_EXTRA_FLAGS="-DUSE_JEMALLOC=OFF"
|
||||||
|
|
||||||
# Sets the build type; defaults to Debug. Valid values:
|
# Sets the build type; defaults to Debug. Valid values:
|
||||||
#
|
#
|
||||||
# - Debug: Disables optimizations (-O0), enables debug information.
|
# - Debug: Disables optimizations (-O0), enables debug information.
|
||||||
#
|
#
|
||||||
# - RelWithDebInfo: Enables optimizations that do not interfere with debugging
|
# - RelWithDebInfo: Enables all optimizations that do not interfere with
|
||||||
# (-O2) which do, enables debug information.
|
# debugging (-Og if available, -O2 and -g if not).
|
||||||
|
# Enables debug information.
|
||||||
#
|
#
|
||||||
# - MinSizeRel: Enables all -O2 optimization that do not typically
|
# - MinSizeRel: Enables all -O2 optimization that do not typically
|
||||||
# increase code size, and performs further optimizations
|
# increase code size, and performs further optimizations
|
||||||
# designed to reduce code size. Disables debug information.
|
# designed to reduce code size (-Os).
|
||||||
|
# Disables debug information.
|
||||||
#
|
#
|
||||||
# - Release: Same as RelWithDebInfo, but disables debug information.
|
# - Release: Same as RelWithDebInfo, but disables debug information.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user