neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 7f7b83baef87b049b8779061065046ee161e2d7c
parent 36555730daaac8a9b88878a869c0cef6d5b701f0
Author: Enan Ajmain <3nan.ajmain@gmail.com>
Date:   Wed, 18 Jan 2023 16:48:01 +0600

build(Windows): fix redoing version generation (#21880)

Problem: On Windows, neovim's version is generated every time nvim is
built, even if code hasn't been changed.  That is because version
generation is done based on a hash matching of a file and the content of
the file.  And in Windows they don't match, because of the DOS
line-endings.

Solution: Write the file containing nvim version with UNIX line-endings.
Diffstat:
Mcmake/GenerateVersion.cmake | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/cmake/GenerateVersion.cmake b/cmake/GenerateVersion.cmake @@ -33,4 +33,7 @@ endif() if(NOT "${NVIM_VERSION_HASH}" STREQUAL "${CURRENT_VERSION_HASH}") message(STATUS "Using NVIM_VERSION: ${NVIM_VERSION}") file(WRITE "${OUTPUT}" "${NVIM_VERSION_STRING}") + if(WIN32) + configure_file("${OUTPUT}" "${OUTPUT}" NEWLINE_STYLE UNIX) + endif() endif()