]> git.pld-linux.org Git - packages/neovim.git/commitdiff
don't warn about "non-optimized debug build" in :checkhealth
authorJan Palus <atler@pld-linux.org>
Sun, 2 Jul 2023 11:26:58 +0000 (13:26 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 2 Jul 2023 11:26:58 +0000 (13:26 +0200)
build-type.patch

index cc9e5543a66c9c8fc0b7b1cee98e736308b5eb8a..b29dc0dc4e38aabfd5234778554bc21671834f81 100644 (file)
@@ -10,3 +10,14 @@ diff --color -ur neovim-0.8.0.orig/cmake/Util.cmake neovim-0.8.0/cmake/Util.cmak
  
    get_property(isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
    if(isMultiConfig)
+--- neovim-0.9.1/runtime/lua/nvim/health.lua.orig      2023-05-29 13:24:38.000000000 +0200
++++ neovim-0.9.1/runtime/lua/nvim/health.lua   2023-07-02 13:20:36.760937259 +0200
+@@ -152,7 +152,7 @@
+   local buildtype = vim.fn.matchstr(vim.fn.execute('version'), [[\v\cbuild type:?\s*[^\n\r\t ]+]])
+   if empty(buildtype) then
+     health.report_error('failed to get build type from :version')
+-  elseif vim.regex([[\v(MinSizeRel|Release|RelWithDebInfo)]]):match_str(buildtype) then
++  elseif vim.regex([[\v(MinSizeRel|Release|RelWithDebInfo|PLD)]]):match_str(buildtype) then
+     health.report_ok(buildtype)
+   else
+     health.report_info(buildtype)
This page took 0.420909 seconds and 4 git commands to generate.