llvm.org GIT mirror llvm / ad21d2d
Include lldb in Win snapshots again (PR37307) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351309 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 1 year, 9 months ago
1 changed file(s) with 15 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
77
88 REM Prerequisites:
99 REM
10 REM Visual Studio 2017, CMake, Ninja, SVN, GNUWin32,
10 REM Visual Studio 2017, CMake, Ninja, SVN, GNUWin32, SWIG, Python 3,
1111 REM NSIS with the strlen_8192 patch,
1212 REM Visual Studio 2017 SDK and Nuget (for the clang-format plugin),
1313 REM Perl (for the OpenMP run-time).
14 REM
15 REM
16 REM For LLDB, SWIG version <= 3.0.8 needs to be used to work around
17 REM https://github.com/swig/swig/issues/769
1418
1519
1620 REM You need to modify the paths below:
1721 set vsdevcmd=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat
22
23 set python32_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python36-32
24 set python64_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python36
1825
1926 set revision=%1
2027 set branch=trunk
4047 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/lld/%branch% llvm/tools/lld || exit /b
4148 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/compiler-rt/%branch% llvm/projects/compiler-rt || exit /b
4249 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/openmp/%branch% llvm/projects/openmp || exit /b
50 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/lldb/%branch% llvm/tools/lldb || exit /b
4351
4452
4553 REM Setting CMAKE_CL_SHOWINCLUDES_PREFIX to work around PR27226.
46 set cmake_flags=-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_USE_CRT_RELEASE=MT -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DCLANG_FORMAT_VS_VERSION=%clang_format_vs_version% -DPACKAGE_VERSION=%package_version% -DCMAKE_CL_SHOWINCLUDES_PREFIX="Note: including file: "
54 set cmake_flags=-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DCMAKE_INSTALL_UCRT_LIBRARIES=ON -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: "
4755
4856 REM TODO: Run all tests, including lld and compiler-rt.
4957
5462 mkdir build32_stage0
5563 cd build32_stage0
5664 REM Work around VS2017 bug by using MinSizeRel.
57 cmake -GNinja %cmake_flags% -DCMAKE_BUILD_TYPE=MinSizeRel ..\llvm || exit /b
65 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python32_dir% -DCMAKE_BUILD_TYPE=MinSizeRel ..\llvm || exit /b
5866 ninja all || ninja all || ninja all || exit /b
5967 ninja check || ninja check || ninja check || exit /b
6068 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
6472 cd build32
6573 set CC=..\build32_stage0\bin\clang-cl
6674 set CXX=..\build32_stage0\bin\clang-cl
67 cmake -GNinja %cmake_flags% ..\llvm || exit /b
75 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
6876 ninja all || ninja all || ninja all || exit /b
6977 ninja check || ninja check || ninja check || exit /b
7078 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
7684 cd build_vsix
7785 set CC=..\build32_stage0\bin\clang-cl
7886 set CXX=..\build32_stage0\bin\clang-cl
79 cmake -GNinja %cmake_flags% -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON ..\llvm || exit /b
87 cmake -GNinja %cmake_flags% -DLLVM_USE_CRT_RELEASE=MT -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
8088 ninja clang_format_vsix || exit /b
8189 copy ..\llvm\tools\clang\tools\clang-format-vs\ClangFormat\bin\Release\ClangFormat.vsix ClangFormat-r%revision%.vsix
8290 cd ..
8997 mkdir build64_stage0
9098 cd build64_stage0
9199 REM Work around VS2017 bug by using MinSizeRel.
92 cmake -GNinja %cmake_flags% -DCMAKE_BUILD_TYPE=MinSizeRel ..\llvm || exit /b
100 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python64_dir% -DCMAKE_BUILD_TYPE=MinSizeRel ..\llvm || exit /b
93101 ninja all || ninja all || ninja all || exit /b
94102 ninja check || ninja check || ninja check || exit /b
95103 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
99107 cd build64
100108 set CC=..\build64_stage0\bin\clang-cl
101109 set CXX=..\build64_stage0\bin\clang-cl
102 cmake -GNinja %cmake_flags% ..\llvm || exit /b
110 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python64_dir% ..\llvm || exit /b
103111 ninja all || ninja all || ninja all || exit /b
104112 ninja check || ninja check || ninja check || exit /b
105113 ninja check-clang || ninja check-clang || ninja check-clang || exit /b