llvm.org GIT mirror llvm / c941e1f
build_llvm_package.bat: Move to VS2017 It's required for building the clang-format plugin after r300225. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300273 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 2 years ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
77
88 REM Prerequisites:
99 REM
10 REM Visual Studio 2015, CMake, Ninja, SVN, GNUWin32, SWIG, Python 3,
10 REM Visual Studio 2017, CMake, Ninja, SVN, GNUWin32, SWIG, Python 3,
1111 REM NSIS with the strlen_8192 patch,
12 REM Visual Studio 2015 SDK (for the clang-format plugin).
12 REM Visual Studio 2017 SDK (for the clang-format plugin).
1313 REM
1414 REM
1515 REM For LLDB, SWIG version <= 3.0.8 needs to be used to work around
1717
1818
1919 REM You need to modify the paths below:
20 set vcdir=c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
20 set vsdevcmd=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat
21
2122 set python32_dir=C:\Users\hwennborg\AppData\Local\Programs\Python\Python35-32
2223 set python64_dir=C:\Users\hwennborg\AppData\Local\Programs\Python\Python35
2324 set PATH=%PATH%;c:\gnuwin32\bin
5455
5556 REM TODO: Run all tests, including lld and compiler-rt.
5657
57 call "%vcdir%/vcvarsall.bat" x86
58 call "%vsdevcmd%" -arch=x86
5859 set CC=
5960 set CXX=
6061 mkdir build32_stage0
7374 ninja all || exit /b
7475 ninja check || ninja check || ninja check || exit /b
7576 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
76 copy ..\llvm\tools\clang\tools\clang-format-vs\ClangFormat\bin\Release\ClangFormat.vsix ClangFormat-r%revision%.vsix
7777 ninja package || exit /b
7878 cd ..
7979
80 REM The plug-in is built separately as it uses a statically linked clang-cl.exe.
80 REM The plug-in is built separately as it uses a statically linked clang-format.exe.
8181 mkdir build_vsix
8282 cd build_vsix
8383 set CC=..\build32_stage0\bin\clang-cl
8888 cd ..
8989
9090
91 call "%vcdir%/vcvarsall.bat" amd64
91 call "%vsdevcmd%" -arch=amd64
9292 set CC=
9393 set CXX=
9494 mkdir build64_stage0