I am trying to built flang but I get the cmake error:
Unknown CMake command “mlir_tablegen”.
I followed the 5 steps of the docs:
- git clone https://github.com/llvm/llvm-project.git
- cd llvm-project
- mkdir build
- cd build
- cmake -G “Unix Makefiles” -DLLVM_ENABLE_PROJECTS=flang -DCMAKE_INSTALL_PREFIX=/usr/local/opt …/llvm
I had no problem building clang. Am I doing something wrong?
Thanks for your help.