<div dir="ltr">Hi<div><br></div><div>I'm able to create a package by Ninja.<br><div><br></div><div><div>set DIR=%~dp0</div><div><br></div><div>cd /d %DIR%</div><div>rmdir /s /q llvm</div><div>svn co <a href="http://llvm.org/svn/llvm-project/llvm/trunk">http://llvm.org/svn/llvm-project/llvm/trunk</a> llvm</div><div><br></div><div>cd /d %DIR%</div><div>cd llvm\tools</div><div>svn co <a href="http://llvm.org/svn/llvm-project/cfe/trunk">http://llvm.org/svn/llvm-project/cfe/trunk</a> clang</div><div><br></div><div>cd /d %DIR%</div><div>cd llvm\tools</div><div>svn co <a href="http://llvm.org/svn/llvm-project/lld/trunk">http://llvm.org/svn/llvm-project/lld/trunk</a> lld</div><div><br></div><div>cd /d %DIR%</div><div>cd llvm\tools</div><div>svn co <a href="http://llvm.org/svn/llvm-project/polly/trunk">http://llvm.org/svn/llvm-project/polly/trunk</a> polly</div><div><br></div><div>cd /d %DIR%</div><div>cd llvm\projects</div><div>svn co <a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk">http://llvm.org/svn/llvm-project/compiler-rt/trunk</a> compiler-rt</div><div><br></div><div>cd /d %DIR%</div><div>cd llvm\projects</div><div>svn co <a href="http://llvm.org/svn/llvm-project/libcxx/trunk">http://llvm.org/svn/llvm-project/libcxx/trunk</a> libcxx</div><div>svn co <a href="http://llvm.org/svn/llvm-project/libcxxabi/trunk">http://llvm.org/svn/llvm-project/libcxxabi/trunk</a> libcxxabi</div></div><div><br></div><div><div>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86</div><div><br></div><div>rmdir /s /q build-ninja-llvm</div><div>mkdir build-ninja-llvm</div><div>cd build-ninja-llvm</div><div>cmake ^</div><div>-G Ninja ^</div><div>-D CMAKE_INSTALL_PREFIX=c:\clang ^</div><div>-D CMAKE_BUILD_TYPE=Release ^</div><div>..\llvm</div></div><div>ninja package</div><div><br></div><div>But I coundn't create a package by Visual Studio 2017</div><div><br></div><div><div>cd build2017-llvm</div><div>cmake ^</div><div>-G "Visual Studio 15 2017" ^</div><div>-D CMAKE_INSTALL_PREFIX=c:\clang ^</div><div>..\llvm</div></div></div><div><br></div><div>open LLVM.sln and build PACKAGE.</div><div><br></div><div>Then I got the following errors.</div><div>It seems $(Configuration) is not expanded to Release.</div><div><br></div><div><div>71>------ ビルド開始: プロジェクト: PACKAGE, 構成: Release Win32 ------</div><div>71>CPack: Create package using NSIS</div><div>71>CPack: Install projects</div><div>71>CPack: - Install project: LLVM</div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/builtins/cmake_install.cmake:34 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.builtins-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/stats/cmake_install.cmake:34 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.stats-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:35 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/stats/cmake_install.cmake:46 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.stats_client-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:35 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/ubsan/cmake_install.cmake:34 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.ubsan_standalone-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:37 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/ubsan/cmake_install.cmake:46 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.ubsan_standalone_cxx-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:37 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/asan/cmake_install.cmake:34 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.asan-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:38 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/asan/cmake_install.cmake:46 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.asan_cxx-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:38 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/asan/cmake_install.cmake:58 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.asan-preinit-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:38 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/asan/cmake_install.cmake:82 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.asan_dynamic-i386.dll".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:38 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/asan/cmake_install.cmake:94 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.asan_dll_thunk-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:38 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/asan/cmake_install.cmake:106 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.asan_dynamic_runtime_thunk-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:38 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div><div>71></div><div>71></div><div>71>CMake Error at C:/svnwork/build2017-llvm/projects/compiler-rt/lib/profile/cmake_install.cmake:34 (file):</div><div>71>  file INSTALL cannot find</div><div>71>  "C:/svnwork/build2017-llvm/$(Configuration)/lib/clang/5.0.0/lib/windows/clang_rt.profile-i386.lib".</div><div>71>Call Stack (most recent call first):</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/lib/cmake_install.cmake:39 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/compiler-rt/cmake_install.cmake:33 (include)</div><div>71>  C:/svnwork/build2017-llvm/projects/cmake_install.cmake:32 (include)</div><div>71>  C:/svnwork/build2017-llvm/cmake_install.cmake:65 (include)</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-29 15:52 GMT+09:00 masaru tsuchiyama <span dir="ltr"><<a href="mailto:m.tmatma@gmail.com" target="_blank">m.tmatma@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>Could you tell me how to build Windows Installer for clang</div><div><br></div><div>Regards.</div><span class="HOEnZb"><font color="#888888"><div>Masaru.</div><div><br></div></font></span></div>
</blockquote></div><br></div>