llvm.org GIT mirror llvm / 837806b
build_llvm_package.bat: Update to VS2015 and include LLDB git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281676 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
1 changed file(s) with 12 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
77
88 REM Prerequisites:
99 REM
10 REM Visual Studio 2013, CMake, Ninja, SVN, GNUWin32,
10 REM Visual Studio 2015, CMake, Ninja, SVN, GNUWin32, SWIG, Python 3,
1111 REM NSIS with the strlen_8192 patch,
12 REM Visual Studio 2013 SDK (for the clang-format plugin).
12 REM Visual Studio 2015 SDK (for the clang-format plugin).
1313
1414
15 REM You may need to modify the paths below:
16 set vcdir=c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC
15 REM You need to modify the paths below:
16 set vcdir=c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
17 set python32_dir=C:\Users\hwennborg\AppData\Local\Programs\Python\Python35-32
18 set python64_dir=C:\Users\hwennborg\AppData\Local\Programs\Python\Python35
1719 set PATH=%PATH%;c:\gnuwin32\bin
1820
1921 set revision=%1
4042 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/lld/%branch% llvm/tools/lld || exit /b
4143 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/compiler-rt/%branch% llvm/projects/compiler-rt || exit /b
4244 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/openmp/%branch% llvm/projects/openmp || exit /b
45 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/lldb/%branch% llvm/tools/lldb || exit /b
4346
4447
4548 REM Setting CMAKE_CL_SHOWINCLUDES_PREFIX to work around PR27226.
46 set cmake_flags=-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DLLVM_USE_CRT_RELEASE=MT -DCLANG_FORMAT_VS_VERSION=%clang_format_vs_version% -DPACKAGE_VERSION=%package_version% -DCMAKE_CL_SHOWINCLUDES_PREFIX="Note: including file: "
49 set cmake_flags=-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DLLVM_USE_CRT_RELEASE=MT -DCLANG_FORMAT_VS_VERSION=%clang_format_vs_version% -DPACKAGE_VERSION=%package_version% -DLLDB_RELOCATABLE_PYTHON=1 -DLLDB_TEST_COMPILER=%cd%\build32_stage0\bin\clang.exe -DCMAKE_CL_SHOWINCLUDES_PREFIX="Note: including file: "
4750
4851 REM TODO: Run all tests, including lld and compiler-rt.
4952
5255 set CXX=
5356 mkdir build32_stage0
5457 cd build32_stage0
55 cmake -GNinja %cmake_flags% ..\llvm || exit /b
58 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
5659 ninja all || exit /b
5760 ninja check || ninja check || ninja check || exit /b
5861 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
6265 cd build32
6366 set CC=..\build32_stage0\bin\clang-cl
6467 set CXX=..\build32_stage0\bin\clang-cl
65 cmake -GNinja %cmake_flags% -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON ..\llvm || exit /b
68 cmake -GNinja %cmake_flags% -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
6669 ninja all || exit /b
6770 ninja check || ninja check || ninja check || exit /b
6871 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
7679 set CXX=
7780 mkdir build64_stage0
7881 cd build64_stage0
79 cmake -GNinja %cmake_flags% ..\llvm || exit /b
82 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python64_dir% ..\llvm || exit /b
8083 ninja all || exit /b
8184 ninja check || ninja check || ninja check || exit /b
8285 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
8689 cd build64
8790 set CC=..\build64_stage0\bin\clang-cl
8891 set CXX=..\build64_stage0\bin\clang-cl
89 cmake -GNinja %cmake_flags% ..\llvm || exit /b
92 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python64_dir% ..\llvm || exit /b
9093 ninja all || exit /b
9194 ninja check || ninja check || ninja check || exit /b
9295 ninja check-clang || ninja check-clang || ninja check-clang || exit /b