patch 8.2.5087: cannot build with clang on MS-Windows
Problem: Cannot build with clang on MS-Windows.
Solution: Add support for building with clang. (Yegappan Lakshmanan,
closes #10557)
diff --git a/src/INSTALLpc.txt b/src/INSTALLpc.txt
index 51b315b..1c50dd1 100644
--- a/src/INSTALLpc.txt
+++ b/src/INSTALLpc.txt
@@ -282,6 +282,29 @@
If you have msys64 in another location you will need to adjust the paths for
that.
+2.5. Build Vim with Clang
+
+The following package group is required for building Vim with Clang:
+
+* mingw-w64-clang-x86_64-clang
+
+Use the following command to install it:
+
+ $ pacman -S mingw-w64-clang-x86_64-clang
+
+Go to the source directory of Vim, then execute the make command. E.g.:
+
+ CC=clang
+ CXX=clang++
+ make -f Make_ming.mak
+ make -f Make_ming.mak GUI=no
+ make -f Make_ming.mak GUI=yes
+
+To build Vim with the address sanitizer (ASAN), execute the following command:
+
+ CC=clang
+ CXX=clang++
+ make -f Make_ming.mak DEBUG=yes ASAN=yes
3. MinGW
========