mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-02-09 20:26:37 +01:00
aebdca4339b0625165ec27fbc475a87f73b25ccd
Recent Vim builds introduced the use of clock_gettime(), which on macOS was only introduced in 10.12. In Vim, we added a configure check to detect its existence (https://github.com/vim/vim/issues/12242) but it only works to detect the build-time environment. For MacVim builds we build on new machines but deploy on old machines by using MACOSX_DEPLOYMENT_TARGET=10.9 when building. This means that the configure script will detect clock_gettime() exists and includes it, but at runtime the app will crash when running MacVim (legacy builds) in 10.9-10.11. To fix this, add explicit checks to make sure we undef HAVE_CLOCK_GETTIME if deployment target is below 10.12. Unfortunately there isn't really a way to detect such things automatically in a configure script as it requires knowledge of historical releases.
…
…
…
Vim - the text editor - for macOS
-
MacVim homepage https://macvim-dev.github.io/macvim
-
Download the latest version from Releases.
-
Vim README: README_vim.md
Languages
Vim Script
52.3%
C
37.9%
Objective-C
3.2%
Roff
1.5%
Makefile
1.2%
Other
3.1%