neovim: reduce log

Fix: #42010
This commit is contained in:
Đoàn Trần Công Danh 2023-02-01 15:42:22 +07:00
parent dac5ae4ead
commit c865535abd
2 changed files with 16 additions and 6 deletions

View file

@ -1,7 +1,14 @@
diff --git a/cmake/Util.cmake b/cmake/Util.cmake
index 343a729..d7d15e1 100644
--- a/cmake/Util.cmake --- a/cmake/Util.cmake
+++ b/cmake/Util.cmake +++ b/cmake/Util.cmake
@@ -162,7 +162,7 @@ endfunction()
# Passing CMAKE_BUILD_TYPE for multi-config generators will now not only
# not be used, but also generate a warning for the user.
function(set_default_buildtype)
- set(allowableBuildTypes Debug Release MinSizeRel RelWithDebInfo)
+ set(allowableBuildTypes Debug Release MinSizeRel RelWithDebInfo None)
get_property(isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(isMultiConfig)
@@ -177,7 +177,7 @@ function(set_default_buildtype) @@ -177,7 +177,7 @@ function(set_default_buildtype)
message(STATUS "CMAKE_BUILD_TYPE not specified, default is 'Debug'") message(STATUS "CMAKE_BUILD_TYPE not specified, default is 'Debug'")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build" FORCE) set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build" FORCE)
@ -11,8 +18,6 @@ index 343a729..d7d15e1 100644
else() else()
message(STATUS "CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") message(STATUS "CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}")
endif() endif()
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim
index be56658..46fdd0f 100644
--- a/runtime/autoload/health/nvim.vim --- a/runtime/autoload/health/nvim.vim
+++ b/runtime/autoload/health/nvim.vim +++ b/runtime/autoload/health/nvim.vim
@@ -135,7 +135,7 @@ function! s:check_performance() abort @@ -135,7 +135,7 @@ function! s:check_performance() abort

View file

@ -1,10 +1,12 @@
# Template file for 'neovim' # Template file for 'neovim'
pkgname=neovim pkgname=neovim
version=0.8.2 version=0.8.2
revision=2 revision=3
build_style=cmake build_style=cmake
build_helper="qemu" build_helper="qemu"
configure_args="-DCOMPILE_LUA=OFF -DPREFER_LUA=$(vopt_if luajit OFF ON)" # MIN_LOG_LEVEL 1: INFO, 3: ERROR, upstream's release's default is 3
configure_args="-DCOMPILE_LUA=OFF -DPREFER_LUA=$(vopt_if luajit OFF ON)
-DMIN_LOG_LEVEL=3"
hostmakedepends="pkg-config gettext gperf lua51-lpeg lua51-mpack lua51-BitOp hostmakedepends="pkg-config gettext gperf lua51-lpeg lua51-mpack lua51-BitOp
$(vopt_if luajit LuaJIT lua51)" $(vopt_if luajit LuaJIT lua51)"
makedepends="libtermkey-devel libuv-devel libvterm-devel msgpack-devel makedepends="libtermkey-devel libuv-devel libvterm-devel msgpack-devel
@ -31,6 +33,9 @@ alternatives="
vim:vim:/usr/bin/nvim vim:vim:/usr/bin/nvim
vim:vim.1:/usr/share/man/man1/nvim.1" vim:vim.1:/usr/share/man/man1/nvim.1"
# They want assertion
CFLAGS=-UNDEBUG
pre_configure() { pre_configure() {
vsed -i runtime/CMakeLists.txt \ vsed -i runtime/CMakeLists.txt \
-e "s|\".*/bin/nvim|\${CMAKE_CROSSCOMPILING_EMULATOR} &|g" -e "s|\".*/bin/nvim|\${CMAKE_CROSSCOMPILING_EMULATOR} &|g"