Mercurial > vim
comparison src/INSTALLpc.txt @ 14792:8eb8200a55b2 v8.1.0408
patch 8.1.0408: MSVC: cannot use the "x64" native compiler option
commit https://github.com/vim/vim/commit/a87f8fd3fe8697d2b43da5c89e3079aaa0f1c9c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 18 22:58:41 2018 +0200
patch 8.1.0408: MSVC: cannot use the "x64" native compiler option
Problem: MSVC: cannot use the "x64" native compiler option.
Solution: Ignore case for %Platform%. Improve documentation. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 18 Sep 2018 23:00:07 +0200 |
parents | 78449866e9a9 |
children | cd1b393ddb5f |
comparison
equal
deleted
inserted
replaced
14791:c0cc417a9714 | 14792:8eb8200a55b2 |
---|---|
1 INSTALLpc.txt - Installation of Vim on PC | 1 INSTALLpc.txt - Installation of Vim on PC |
2 | 2 |
3 This file contains instructions for compiling Vim. If you already have an | 3 This file contains instructions for compiling Vim. If you already have an |
4 executable version of Vim, you don't need this. | 4 executable version of Vim, you don't need this. |
5 | 5 |
6 You can find the lastest here: https://github.com/vim/vim-win32-installer | 6 You can find the latest here: https://github.com/vim/vim-win32-installer |
7 This page also has links to install support for interfaces such as Perl, | 7 This page also has links to install support for interfaces such as Perl, |
8 Python, Lua, etc. | 8 Python, Lua, etc. |
9 | 9 |
10 The file "feature.h" can be edited to match your preferences. You can skip | 10 The file "feature.h" can be edited to match your preferences. You can skip |
11 this, then you will get the default behavior as is documented, which should | 11 this, then you will get the default behavior as is documented, which should |
162 msvc2015.bat will set them automatically. For x86 builds run this without | 162 msvc2015.bat will set them automatically. For x86 builds run this without |
163 options: | 163 options: |
164 msvc2015 | 164 msvc2015 |
165 For x64 builds run this with the "x86_amd64" option: | 165 For x64 builds run this with the "x86_amd64" option: |
166 msvc2015 x86_amd64 | 166 msvc2015 x86_amd64 |
167 This enables x86_x64 cross compiler. This works on any editions including | |
168 Express edition. | |
169 If you use Community (or Professional) edition, you can enable the x64 native | |
170 compiler by using the "x64" option: | |
171 msvc2015 x64 | |
167 | 172 |
168 The following Visual C++ team blog can serve as a reference page: | 173 The following Visual C++ team blog can serve as a reference page: |
169 http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx | 174 http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx |
170 | 175 |
171 | 176 |
180 Visual C++ Toolkit 2003 *msvc-2003-toolkit* | 185 Visual C++ Toolkit 2003 *msvc-2003-toolkit* |
181 ----------------------- | 186 ----------------------- |
182 | 187 |
183 You could download the Microsoft Visual C++ Toolkit 2003 from | 188 You could download the Microsoft Visual C++ Toolkit 2003 from |
184 http://msdn.microsoft.com/visualc/vctoolkit2003/ | 189 http://msdn.microsoft.com/visualc/vctoolkit2003/ |
185 Unfortunately this URL is no longer valid. Inofficial downloads appear to be | 190 Unfortunately this URL is no longer valid. Unofficial downloads appear to be |
186 available from links mentioned on these pages (use at your own risk): | 191 available from links mentioned on these pages (use at your own risk): |
187 http://www.filewatcher.com/m/VCToolkitSetup.exe.32952488.0.0.html | 192 http://www.filewatcher.com/m/VCToolkitSetup.exe.32952488.0.0.html |
188 http://feargame.net/wiki/index.php?title=Building_Source_with_the_VC2003_Toolkit | 193 http://feargame.net/wiki/index.php?title=Building_Source_with_the_VC2003_Toolkit |
189 | 194 |
190 This contains the command-line tools (compiler, linker, CRT headers, | 195 This contains the command-line tools (compiler, linker, CRT headers, |
274 (Even if you want to build 32-bit Vim) | 279 (Even if you want to build 32-bit Vim) |
275 * msys2-i686-YYYYMMDD.exe for 32-bit Windows | 280 * msys2-i686-YYYYMMDD.exe for 32-bit Windows |
276 | 281 |
277 Execute the installer and follow the instructions to update basic packages. | 282 Execute the installer and follow the instructions to update basic packages. |
278 At the end keep the checkbox checked to run msys2 now. If needed, you can | 283 At the end keep the checkbox checked to run msys2 now. If needed, you can |
279 open the window from the start menu, MSYS2 64 bit / MSYS2 MSYS | 284 open the window from the start menu, MSYS2 64 bit / MSYS2 MSYS. |
280 | 285 |
281 Execute: | 286 Execute: |
282 $ pacman -Syu | 287 $ pacman -Syu |
283 | 288 |
284 And restart MSYS2 window (select "MSYS2 MSYS" icon from the Start Menu). | 289 And restart MSYS2 console (select "MSYS2 MSYS" icon from the Start Menu). |
285 Then execute: | 290 Then execute: |
286 $ pacman -Su | 291 $ pacman -Su |
287 | 292 |
288 If pacman complains that `catgets` and `libcatgets` conflict with another | 293 If pacman complains that `catgets` and `libcatgets` conflict with another |
289 package, select `y` to remove them. | 294 package, select `y` to remove them. |
295 | 300 |
296 * base-devel | 301 * base-devel |
297 * mingw-w64-i686-toolchain (for building 32-bit Vim) | 302 * mingw-w64-i686-toolchain (for building 32-bit Vim) |
298 * mingw-w64-x86_64-toolchain (for building 64-bit Vim) | 303 * mingw-w64-x86_64-toolchain (for building 64-bit Vim) |
299 | 304 |
305 (These groups also include some useful packages which are not used by Vim.) | |
300 Use the following command to install them: | 306 Use the following command to install them: |
301 | 307 |
302 $ pacman -S base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain | 308 $ pacman -S base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain |
303 | 309 |
304 Or you can use the `pacboy` command to avoid long package names: | 310 Or you can use the `pacboy` command to avoid long package names: |
305 | 311 |
306 $ pacboy -S base-devel: toolchain:m | 312 $ pacboy -S base-devel: toolchain:m |
307 | 313 |
314 The suffix ":" means that it disables the package name translation. | |
315 The suffix ":m" means both i686 and x86_64. You can also use the ":i" suffix | |
316 to install only i686, and the ":x" suffix to install only x86_64. | |
308 (See `pacboy help` for the help.) | 317 (See `pacboy help` for the help.) |
318 | |
319 See also the pacman page in ArchWiki for the general usage of pacman: | |
320 https://wiki.archlinux.org/index.php/pacman | |
321 | |
322 MSYS2 has its own git package, and you can also install it via pacman: | |
323 | |
324 $ pacman -S git | |
309 | 325 |
310 | 326 |
311 2.3. Keep the build environment up-to-date | 327 2.3. Keep the build environment up-to-date |
312 | 328 |
313 After you have installed the build environment, you may want to keep it | 329 After you have installed the build environment, you may want to keep it |
314 up-to-date (E.g. always use the latest GCC). | 330 up-to-date (E.g. always use the latest GCC). |
315 In that case, you just need to execute the command: | 331 In that case, you just need to execute the command: |
316 $ pacman -Syu | 332 $ pacman -Syu |
317 | 333 |
318 | 334 |
319 # Build Vim | 335 2.4. Build Vim |
320 | 336 |
321 Select one of the following icon from the Start Menu: | 337 Select one of the following icon from the Start Menu: |
322 | 338 |
323 * MSYS2 MinGW 32-bit (To build 32-bit versions of Vim) | 339 * MSYS2 MinGW 32-bit (To build 32-bit versions of Vim) |
324 * MSYS2 MinGW 64-bit (To build 64-bit versions of Vim) | 340 * MSYS2 MinGW 64-bit (To build 64-bit versions of Vim) |
327 | 343 |
328 make -f Make_ming.mak | 344 make -f Make_ming.mak |
329 make -f Make_ming.mak GUI=no | 345 make -f Make_ming.mak GUI=no |
330 make -f Make_ming.mak GUI=no DEBUG=yes | 346 make -f Make_ming.mak GUI=no DEBUG=yes |
331 | 347 |
332 NOTE: you can't execute the vim.exe in the MSYS console, open a normal Windows | 348 NOTE: you can't execute vim.exe in the MSYS2 console, open a normal Windows |
333 console for that. You need to set $PATH to be able to build there, e.g.: | 349 console for that. You need to set $PATH to be able to build there, e.g.: |
334 | 350 |
335 set PATH=c:\msys64\mingw32\bin;c:\msys64\usr\bin;%PATH% | 351 set PATH=c:\msys64\mingw32\bin;c:\msys64\usr\bin;%PATH% |
336 | 352 |
337 This command is in msys32.bat. Or or the 64 bit compiler use msys64.bat: | 353 This command is in msys32.bat. Or for the 64 bit compiler use msys64.bat: |
338 | 354 |
339 set PATH=c:\msys64\mingw64\bin;c:\msys64\usr\bin;%PATH% | 355 set PATH=c:\msys64\mingw64\bin;c:\msys64\usr\bin;%PATH% |
340 | 356 |
341 If you have msys64 in another location you will need to adjust the paths for | 357 If you have msys64 in another location you will need to adjust the paths for |
342 that. | 358 that. |