aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-03 21:12:42 +0200
committerGitHub <noreply@github.com>2023-04-03 21:12:42 +0200
commiteb1da498d6af79b7856418d7df51ce584c621340 (patch)
tree52e1b4e9b4d0118ff51002cd58f588c55fc25e59
parente30cc8be1950a6d1dec7395807966e1b5d0d9194 (diff)
downloadrneovim-eb1da498d6af79b7856418d7df51ce584c621340.tar.gz
rneovim-eb1da498d6af79b7856418d7df51ce584c621340.tar.bz2
rneovim-eb1da498d6af79b7856418d7df51ce584c621340.zip
build(windows): work around luarocks not finding its own md5sum
Luarocks is unable to find its own md5sum due to these reasons listed in the comment https://github.com/luarocks/luarocks/issues/1443. The pull request https://github.com/luarocks/luarocks/pull/1498 resolves this issue, but in the meantime we can work around it by resetting the value of MD5sum to "md5sum".
-rw-r--r--cmake.deps/cmake/BuildLuarocks.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake.deps/cmake/BuildLuarocks.cmake b/cmake.deps/cmake/BuildLuarocks.cmake
index 6e77fd7935..9998f55fcc 100644
--- a/cmake.deps/cmake/BuildLuarocks.cmake
+++ b/cmake.deps/cmake/BuildLuarocks.cmake
@@ -13,6 +13,9 @@ if(NOT MSVC)
# In MSVC don't pass the compiler/linker to luarocks, the bundled
# version already knows, and passing them here breaks the build
set(LUAROCKS_BUILDARGS CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER})
+else()
+ # Workaround for luarocks failing to find the md5sum.exe it is shipped with.
+ set(LUAROCKS_BUILDARGS MD5SUM=md5sum)
endif()
# Lua version, used with rocks directories.