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)
This commit is contained in:
Yegappan Lakshmanan
2022-06-14 12:30:25 +01:00
committed by Bram Moolenaar
parent 361f9d2da4
commit 1630bd980a
4 changed files with 56 additions and 1 deletions

View File

@ -282,6 +282,29 @@ This command is in msys32.bat. Or for the 64 bit compiler use msys64.bat:
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
========