Unable to build tinylang with LLVM
abidmalikwaterloo opened this issue · comments
Abid commented
hello,
I am trying to build the tiny tool based on Chapter 2. I followed the book and also consult the github. However, I am getting the following:
CMake Error at cmake/modules/LLVMProcessSources.cmake:114 (message):
Found unknown source file Driver.cpp
Please update /home/amalik/LLVM/tinylang/tools/driver/CMakeLists.txt
Call Stack (most recent call first):
cmake/modules/LLVMProcessSources.cmake:63 (llvm_check_source_file_list)
cmake/modules/AddLLVM.cmake:867 (llvm_process_sources)
/home/amalik/LLVM/tinylang/cmake/modules/AddTinylang.cmake:26 (add_llvm_executable)
/home/amalik/LLVM/tinylang/cmake/modules/AddTinylang.cmake:30 (add_tinylang_executable)
/home/amalik/LLVM/tinylang/tools/driver/CMakeLists.txt:3 (add_tinylang_tool)
CMake Error at /home/amalik/LLVM/tinylang/cmake/modules/AddTinylang.cmake:31 (install):
install does not recognize sub-command TARGET
Call Stack (most recent call first):
/home/amalik/LLVM/tinylang/tools/driver/CMakeLists.txt:3
> (add_tinylang_tool)''
I am not sure where things are going wrong. Driver.cpp is there.