]> granicus.if.org Git - vim/commitdiff
patch 8.2.2174: Mac version doesn't specify the CPU architecture v8.2.2174
authorBram Moolenaar <Bram@vim.org>
Mon, 21 Dec 2020 12:05:57 +0000 (13:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 21 Dec 2020 12:05:57 +0000 (13:05 +0100)
Problem:    Mac version doesn't specify the CPU architecture.
Solution:   Add "arm64" or "x86_64". (Yee Cheng Chin, closes #7519)

src/version.c

index 1a45c95ca6b93ebbea7fdf97004a567dd62cdd68..395db11ec5325e9af65596725813cf3217ce2bda 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2174,
 /**/
     2173,
 /**/
@@ -5333,6 +5335,11 @@ list_version(void)
 # else
     msg_puts(_("\nmacOS version w/o darwin feat."));
 # endif
+# if defined(__arm64__)
+    msg_puts(" - arm64");
+# elif defined(__x86_64__)
+    msg_puts(" - x86_64");
+# endif
 #endif
 
 #ifdef VMS