diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-02-26 12:51:03 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-03-04 15:26:17 +0100 |
commit | 2ba224e1526681c1a0b1b2b095b1ef2b0874db48 (patch) | |
tree | abc74351fbabb67aa4c68db9996e40cf6a87cff5 /contrib | |
parent | 6cab36e5b7b0d741abe6c5a7c0e20bad30361034 (diff) | |
download | rneovim-2ba224e1526681c1a0b1b2b095b1ef2b0874db48.tar.gz rneovim-2ba224e1526681c1a0b1b2b095b1ef2b0874db48.tar.bz2 rneovim-2ba224e1526681c1a0b1b2b095b1ef2b0874db48.zip |
refactor(log): reduce compile time LOG_LEVEL granularity
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/flake.nix | 2 | ||||
-rw-r--r-- | contrib/local.mk.example | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/contrib/flake.nix b/contrib/flake.nix index 0898c943d7..3884ee9a2b 100644 --- a/contrib/flake.nix +++ b/contrib/flake.nix @@ -33,7 +33,6 @@ NIX_CFLAGS_COMPILE = " -ggdb -Og"; cmakeBuildType = "Debug"; - cmakeFlags = oa.cmakeFlags ++ [ "-DMIN_LOG_LEVEL=0" ]; disallowedReferences = [ ]; }); @@ -45,7 +44,6 @@ }).overrideAttrs (oa: { cmakeFlags = oa.cmakeFlags ++ [ "-DLUACHECK_PRG=${luacheck}/bin/luacheck" - "-DMIN_LOG_LEVEL=0" "-DENABLE_LTO=OFF" ] ++ final.lib.optionals final.stdenv.isLinux [ # https://github.com/google/sanitizers/wiki/AddressSanitizerFlags diff --git a/contrib/local.mk.example b/contrib/local.mk.example index 20396e86ae..4bd026cf87 100644 --- a/contrib/local.mk.example +++ b/contrib/local.mk.example @@ -31,9 +31,10 @@ # often. You can disable it explicitly: # CMAKE_EXTRA_FLAGS += -DENABLE_LTO=OFF -# Log levels: 0 (DEBUG), 1 (INFO), 2 (WARNING), 3 (ERROR) -# Default is 1 (INFO) unless CMAKE_BUILD_TYPE is Release or RelWithDebInfo. -# CMAKE_EXTRA_FLAGS += -DMIN_LOG_LEVEL=1 +# Log levels: DEBUG, INFO, WARNING, ERROR +# For Debug builds all log levels are used +# For Release and RelWithDebInfo builds only WARNING and ERROR are used, unless: +# CMAKE_EXTRA_FLAGS += -DLOG_DEBUG # By default, nvim uses bundled versions of its required third-party # dependencies. |