llvm.org GIT mirror llvm / 4dcfb33
build_llvm_package.bat: Build teh clang-format plugin separately In r293373 we switched the build to linking dynamically against the Universal CRT and include the redistributables in the installer. However, clang-format.exe is copied into the vsix and needs to be statically linked. This commit makes us build the plugin in a separate step that uses static linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294513 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 3 years ago
1 changed file(s) with 11 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6969 cd build32
7070 set CC=..\build32_stage0\bin\clang-cl
7171 set CXX=..\build32_stage0\bin\clang-cl
72 cmake -GNinja %cmake_flags% -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
72 cmake -GNinja %cmake_flags% -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
7373 ninja all || exit /b
7474 ninja check || ninja check || ninja check || exit /b
7575 ninja check-clang || ninja check-clang || ninja check-clang || exit /b
7676 copy ..\llvm\tools\clang\tools\clang-format-vs\ClangFormat\bin\Release\ClangFormat.vsix ClangFormat-r%revision%.vsix
7777 ninja package || exit /b
78 cd ..
79
80 REM The plug-in is built separately as it uses a statically linked clang-cl.exe.
81 mkdir build_vsix
82 cd build_vsix
83 set CC=..\build32_stage0\bin\clang-cl
84 set CXX=..\build32_stage0\bin\clang-cl
85 cmake -GNinja %cmake_flags% -DLLVM_USE_CRT_RELEASE=MT -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON -DPYTHON_HOME=%python32_dir% ..\llvm || exit /b
86 ninja clang_format_vsix || exit /b
87 copy ..\llvm\tools\clang\tools\clang-format-vs\ClangFormat\bin\Release\ClangFormat.vsix ClangFormat-r%revision%.vsix
7888 cd ..
7989
8090