kwk added a comment. @tstellar as you suspected, I had the following problem when building clang in standalone mode and your patch solved it for me. Thank you.
-- Configuring done CMake Error at /usr/lib64/cmake/llvm/AddLLVM.cmake:536 (add_dependencies): The dependency target "RISCVTargetParserTableGen" of target "obj.clangBasic" does not exist. Call Stack (most recent call first): cmake/modules/AddClang.cmake:106 (llvm_add_library) lib/Basic/CMakeLists.txt:40 (add_clang_library) CMake Error at /usr/lib64/cmake/llvm/AddLLVM.cmake:719 (add_dependencies): The dependency target "RISCVTargetParserTableGen" of target "clangBasic" does not exist. Call Stack (most recent call first): cmake/modules/AddClang.cmake:106 (llvm_add_library) lib/Basic/CMakeLists.txt:40 (add_clang_library) CMake Error at /usr/lib64/cmake/llvm/AddLLVM.cmake:536 (add_dependencies): The dependency target "RISCVTargetParserTableGen" of target "obj.clangDriver" does not exist. Call Stack (most recent call first): cmake/modules/AddClang.cmake:106 (llvm_add_library) lib/Driver/CMakeLists.txt:17 (add_clang_library) CMake Error at /usr/lib64/cmake/llvm/AddLLVM.cmake:719 (add_dependencies): The dependency target "RISCVTargetParserTableGen" of target "clangDriver" does not exist. Call Stack (most recent call first): cmake/modules/AddClang.cmake:106 (llvm_add_library) lib/Driver/CMakeLists.txt:17 (add_clang_library) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D141581/new/ https://reviews.llvm.org/D141581 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits