local.mk.example 2.3 KB

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