local.mk.example (2356B)
1 # Copy this to 'local.mk' in the repository root. 2 # Individual entries must be uncommented to take effect. 3 4 # By default, the installation prefix is '/usr/local'. 5 # CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_PREFIX=/usr/local/nvim-latest 6 7 # These CFLAGS can be used in addition to those specified in CMakeLists.txt: 8 # CMAKE_EXTRA_FLAGS="-DCMAKE_C_FLAGS=-ftrapv -Wlogical-op" 9 10 # To turn compiler warnings into errors: 11 # CMAKE_EXTRA_FLAGS += "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -Werror" 12 13 # Sets the build type; defaults to Debug. Valid values: 14 # 15 # - Debug: Disables optimizations (-O0), enables debug information. 16 # 17 # - RelWithDebInfo: Enables optimizations (-O2) with debug information. 18 # 19 # - MinSizeRel: Enables all -O2 optimization that do not typically 20 # increase code size, and performs further optimizations 21 # designed to reduce code size (-Os). 22 # Disables debug information. 23 # 24 # - Release: Same as RelWithDebInfo, but disables debug information. 25 # 26 # CMAKE_BUILD_TYPE := Debug 27 28 # With non-Debug builds interprocedural optimization (IPO) (which includes 29 # link-time optimization (LTO)) is enabled by default, which causes the link 30 # step to take a significant amount of time, which is relevant when building 31 # often. You can disable it explicitly: 32 # CMAKE_EXTRA_FLAGS += -DENABLE_LTO=OFF 33 34 # Log levels: DEBUG, INFO, WARNING, ERROR 35 # For Debug builds all log levels are used 36 # For Release and RelWithDebInfo builds only WARNING and ERROR are used, unless: 37 # CMAKE_EXTRA_FLAGS += "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -DNVIM_LOG_DEBUG" 38 39 # By default, nvim uses bundled versions of its required third-party 40 # dependencies. 41 # Uncomment these entries to instead use system-wide installations of 42 # them. 43 # 44 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_BUSTED=OFF 45 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_GETTEXT=OFF 46 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBICONV=OFF 47 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LIBUV=OFF 48 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LUAJIT=OFF 49 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_LUV=OFF 50 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_TS=OFF 51 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_TS_PARSERS=OFF 52 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UNIBILIUM=OFF 53 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED_UTF8PROC=OFF 54 # 55 # Or disable all bundled dependencies at once. 56 # 57 # DEPS_CMAKE_FLAGS += -DUSE_BUNDLED=OFF 58 59 # .DEFAULT_GOAL := nvim