Skip to content

Tips for building Vim Neovim

Alisue edited this page Aug 13, 2021 · 1 revision

Vim 8.1.2424 on macOS

Apply the following patch then run make

diff --git a/src/auto/configure b/src/auto/configure
index b7c1c11e8..e091deeca 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -14017,8 +14017,8 @@ else
 main() {
   uint32_t nr1 = (uint32_t)-1;
   uint32_t nr2 = (uint32_t)0xffffffffUL;
-  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
-  exit(0);
+  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return(1);
+  return(0);
 }
 _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :

https://itchyny.hatenablog.com/entry/2020/11/21/120000