[PATCH] D136573: [llvm] [cmake] Silence GNUInstallDirs warning in LLVMInstallSymlink
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 25 00:17:00 PDT 2022
MaskRay added a comment.
How to do a standalone build? The lld standalone build is not documented.
% cmake -GNinja -Sllvm -B/tmp/out/custom-llvm custom-llvm -DLLVM_ENABLE_PROJECTS=llvm -DCMAKE_INSTALL_PREFIX=/tmp/opt/llvm
% ninja install
% cmake -GNinja -Slld -B/tmp/out/lld -DLLVM_BUILD_MAIN_SRC_DIR=/tmp/out/custom-llvm/lib/cmake/llvm -DLLVM_DIR=/tmp/out/custom-llvm/lib/cmake/llvm -DLLVM_INCLUDE_TESTS=off
-- Building with -fPIC
-- LLD version: 16.0.0
-- Configuring done
CMake Error at /tmp/out/custom-llvm/lib/cmake/llvm/AddLLVM.cmake:958 (add_executable):
Cannot find source file:
/tmp/out/lld/tools/lld/lld-driver.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
Call Stack (most recent call first):
cmake/modules/AddLLD.cmake:35 (add_llvm_executable)
cmake/modules/AddLLD.cmake:44 (add_lld_executable)
tools/lld/CMakeLists.txt:5 (add_lld_tool)
CMake Error at /tmp/out/custom-llvm/lib/cmake/llvm/AddLLVM.cmake:958 (add_executable):
No SOURCES given to target: lld
Call Stack (most recent call first):
cmake/modules/AddLLD.cmake:35 (add_llvm_executable)
cmake/modules/AddLLD.cmake:44 (add_lld_executable)
tools/lld/CMakeLists.txt:5 (add_lld_tool)
CMake Generate step failed. Build files cannot be regenerated correctly.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136573/new/
https://reviews.llvm.org/D136573
More information about the llvm-commits
mailing list