llvm.org GIT mirror llvm / dc9a7c0
build_llvm_package.bat: Drop LLDB from the package. I don't think anyone ever got this to work, what with getting exactly the right Python dependency and so on. Removing it simplifies the script, removes a number of hairy dependencies, and cuts ~30 MB off the installer size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327835 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 2 years ago
1 changed file(s) with 7 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
77
88 REM Prerequisites:
99 REM
10 REM Visual Studio 2017, CMake, Ninja, SVN, GNUWin32, SWIG, Python 3,
10 REM Visual Studio 2017, CMake, Ninja, SVN, GNUWin32,
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
1814
1915
2016 REM You need to modify the paths below:
2117 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
2518
2619 set revision=%1
2720 set branch=trunk
4740 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/lld/%branch% llvm/tools/lld || exit /b
4841 svn.exe export -r %revision% http://llvm.org/svn/llvm-project/compiler-rt/%branch% llvm/projects/compiler-rt || exit /b
4942 REM 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
5143
5244
5345 REM Setting CMAKE_CL_SHOWINCLUDES_PREFIX to work around PR27226.
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: "
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: "
5547
5648 REM TODO: Run all tests, including lld and compiler-rt.
5749
6254 mkdir build32_stage0
6355 cd build32_stage0
6456 REM Work around VS2017 bug by using MinSizeRel.
65 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python32_dir% -DCMAKE_BUILD_TYPE=MinSizeRel ..\llvm || exit /b
57 cmake -GNinja %cmake_flags% -DCMAKE_BUILD_TYPE=MinSizeRel ..\llvm || exit /b
6658 ninja all || exit /b
6759 ninja check || ninja check || ninja check || exit /b
6860 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
7264 cd build32
7365 set CC=..\build32_stage0\bin\clang-cl
7466 set CXX=..\build32_stage0\bin\clang-cl
75 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
67 cmake -GNinja %cmake_flags% ..\llvm || exit /b
7668 ninja all || exit /b
7769 ninja check || ninja check || ninja check || exit /b
7870 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
8476 cd build_vsix
8577 set CC=..\build32_stage0\bin\clang-cl
8678 set CXX=..\build32_stage0\bin\clang-cl
87 cmake -GNinja %cmake_flags% -DLLVM_USE_CRT_RELEASE=MT -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
79 cmake -GNinja %cmake_flags% -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON ..\llvm || exit /b
8880 ninja clang_format_vsix || exit /b
8981 copy ..\llvm\tools\clang\tools\clang-format-vs\ClangFormat\bin\Release\ClangFormat.vsix ClangFormat-r%revision%.vsix
9082 cd ..
9789 mkdir build64_stage0
9890 cd build64_stage0
9991 REM Work around VS2017 bug by using MinSizeRel.
100 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python64_dir% -DCMAKE_BUILD_TYPE=MinSizeRel ..\llvm || exit /b
92 cmake -GNinja %cmake_flags% -DCMAKE_BUILD_TYPE=MinSizeRel ..\llvm || exit /b
10193 ninja all || exit /b
10294 ninja check || ninja check || ninja check || exit /b
10395 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
10799 cd build64
108100 set CC=..\build64_stage0\bin\clang-cl
109101 set CXX=..\build64_stage0\bin\clang-cl
110 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python64_dir% ..\llvm || exit /b
102 cmake -GNinja %cmake_flags% ..\llvm || exit /b
111103 ninja all || exit /b
112104 ninja check || ninja check || ninja check || exit /b
113105 ninja check-clang || ninja check-clang || ninja check-clang || exit /b