diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-06-14 12:30:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-14 12:30:25 +0100 |
commit | 1630bd980a1f7f62adc6f73cb20be66a3c382225 (patch) | |
tree | 4ec868d17164e2b380b9c6a11c8b4fac7684231a /src/INSTALLpc.txt | |
parent | 361f9d2da4eee27797deaa3283c5054106324b09 (diff) |
patch 8.2.5087: cannot build with clang on MS-Windowsv8.2.5087
Problem: Cannot build with clang on MS-Windows.
Solution: Add support for building with clang. (Yegappan Lakshmanan,
closes #10557)
Diffstat (limited to 'src/INSTALLpc.txt')
-rw-r--r-- | src/INSTALLpc.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/INSTALLpc.txt b/src/INSTALLpc.txt index 51b315b234..1c50dd183c 100644 --- a/src/INSTALLpc.txt +++ b/src/INSTALLpc.txt @@ -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 ======== |