[llvm] r300273 - build_llvm_package.bat: Move to VS2017
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 16:13:23 PDT 2017
Author: hans
Date: Thu Apr 13 18:13:23 2017
New Revision: 300273
URL: http://llvm.org/viewvc/llvm-project?rev=300273&view=rev
Log:
build_llvm_package.bat: Move to VS2017
It's required for building the clang-format plugin after r300225.
Modified:
llvm/trunk/utils/release/build_llvm_package.bat
Modified: llvm/trunk/utils/release/build_llvm_package.bat
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/release/build_llvm_package.bat?rev=300273&r1=300272&r2=300273&view=diff
==============================================================================
--- llvm/trunk/utils/release/build_llvm_package.bat (original)
+++ llvm/trunk/utils/release/build_llvm_package.bat Thu Apr 13 18:13:23 2017
@@ -8,9 +8,9 @@ REM Usage: build_llvm_package.bat <revis
REM Prerequisites:
REM
-REM Visual Studio 2015, CMake, Ninja, SVN, GNUWin32, SWIG, Python 3,
+REM Visual Studio 2017, CMake, Ninja, SVN, GNUWin32, SWIG, Python 3,
REM NSIS with the strlen_8192 patch,
-REM Visual Studio 2015 SDK (for the clang-format plugin).
+REM Visual Studio 2017 SDK (for the clang-format plugin).
REM
REM
REM For LLDB, SWIG version <= 3.0.8 needs to be used to work around
@@ -18,7 +18,8 @@ REM https://github.com/swig/swig/issue
REM You need to modify the paths below:
-set vcdir=c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
+set vsdevcmd=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat
+
set python32_dir=C:\Users\hwennborg\AppData\Local\Programs\Python\Python35-32
set python64_dir=C:\Users\hwennborg\AppData\Local\Programs\Python\Python35
set PATH=%PATH%;c:\gnuwin32\bin
@@ -55,7 +56,7 @@ set cmake_flags=-DCMAKE_BUILD_TYPE=Relea
REM TODO: Run all tests, including lld and compiler-rt.
-call "%vcdir%/vcvarsall.bat" x86
+call "%vsdevcmd%" -arch=x86
set CC=
set CXX=
mkdir build32_stage0
@@ -74,11 +75,10 @@ cmake -GNinja %cmake_flags% -DPYTHON_HOM
ninja all || exit /b
ninja check || ninja check || ninja check || exit /b
ninja check-clang || ninja check-clang || ninja check-clang || exit /b
-copy ..\llvm\tools\clang\tools\clang-format-vs\ClangFormat\bin\Release\ClangFormat.vsix ClangFormat-r%revision%.vsix
ninja package || exit /b
cd ..
-REM The plug-in is built separately as it uses a statically linked clang-cl.exe.
+REM The plug-in is built separately as it uses a statically linked clang-format.exe.
mkdir build_vsix
cd build_vsix
set CC=..\build32_stage0\bin\clang-cl
@@ -89,7 +89,7 @@ copy ..\llvm\tools\clang\tools\clang-for
cd ..
-call "%vcdir%/vcvarsall.bat" amd64
+call "%vsdevcmd%" -arch=amd64
set CC=
set CXX=
mkdir build64_stage0
More information about the llvm-commits
mailing list