Open
Description
OS: Win10 x64
LLVM version: 10.0.0-rc2
Visual Studio version: 16.5 (preview 2)
Build script:
cmake -G "Visual Studio 16 2019" -A x64 -Thost=x64 "-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld;lldb;polly;compiler-rt" "-DCMAKE_INSTALL_PREFIX=D:/llvm/10.0.0-rc2" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=No "-DLLVM_TARGETS_TO_BUILD=X86" ..\llvm\
cmake --build . -- "-m:6" "-p:Configuration=Release" | tee -filepath build.log -append
After build completes, I run the following:
cmake --install . --strip --config Release
And after copying some files the install script crashes with the following error:
CMake Error at projects/compiler-rt/lib/builtins/cmake_install.cmake:39 (file):
file INSTALL cannot find
"D:/llvm-project-llvmorg-10.0.0-rc2/build/$(Configuration)/lib/clang/10.0.0/lib/windows/clang_rt.builtins-x86_64.lib":
No such file or directory.
Call Stack (most recent call first):
projects/compiler-rt/lib/cmake_install.cmake:38 (include)
projects/compiler-rt/cmake_install.cmake:38 (include)
projects/cmake_install.cmake:37 (include)
cmake_install.cmake:63 (include)
I can go around the issue by manually patching the install scripts, with:
find . -name cmake_install.cmake -type f -exec sed -i -e "s/\$(Configuration)/Release/g" "{}" \;
EDIT: Also - not sure whether it's intended to work like this or I should file another issue - the install script doesn't copy the external DLL files for LZMA and libXML2, causing lldb to silently crash when run.