]> git.pld-linux.org Git - packages/neovim.git/blob - build-type.patch
6deab873deeab16ef2ba3ad3e17920152bf3c61f
[packages/neovim.git] / build-type.patch
1 diff --color -ur neovim-0.8.0.orig/cmake/Util.cmake neovim-0.8.0/cmake/Util.cmake
2 --- neovim-0.8.0.orig/cmake/Util.cmake  2022-09-30 17:15:13.000000000 +0200
3 +++ neovim-0.8.0/cmake/Util.cmake       2022-10-01 09:53:36.320939926 +0200
4 @@ -162,7 +162,7 @@
5  # Passing CMAKE_BUILD_TYPE for multi-config generators will now not only
6  # not be used, but also generate a warning for the user.
7  function(set_default_buildtype)
8 -  set(allowableBuildTypes Debug Release MinSizeRel RelWithDebInfo)
9 +  set(allowableBuildTypes Debug Release MinSizeRel RelWithDebInfo PLD)
10  
11    get_property(isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
12    if(isMultiConfig)
13 diff --color -ur neovim-0.8.0.orig/CMakeLists.txt neovim-0.8.0/CMakeLists.txt
14 --- neovim-0.8.0.orig/CMakeLists.txt    2022-09-30 17:15:13.000000000 +0200
15 +++ neovim-0.8.0/CMakeLists.txt 2022-10-01 09:56:00.395911537 +0200
16 @@ -150,7 +150,8 @@
17    # Minimize logging for release-type builds.
18    if(CMAKE_BUILD_TYPE STREQUAL "Release"
19        OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo"
20 -      OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
21 +      OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel"
22 +      OR CMAKE_BUILD_TYPE STREQUAL "PLD")
23      message(STATUS "MIN_LOG_LEVEL not specified, default is 3 (ERROR) for release builds")
24      set(MIN_LOG_LEVEL 3)
25    else()
This page took 0.074825 seconds and 2 git commands to generate.