[llvm-dev] Unable to get started with LLI and LLC
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Wed Dec 2 04:25:15 PST 2020
On Wed, 2 Dec 2020 at 02:09, Jagrat Patkar <jagratpatkar at gmail.com> wrote:
> I tried this out inside llvm-project/build
> cmake -G Ninja tools/lli
> cmake -G Ninja tools/llc
>
> but none of it worked, although the subdirectories do exist under the llvm-project/build/tools/llc or lli
Yep, those two are never going to work. The CMakeLists.txt in those
directories aren't self-contained.
> cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lli;llc" ../llvm this command which resulted in the build directory getting loaded with many subdirectories including tools directory containing lli and llc. But still it didn't enable lli and llc even after mentioning it in the ENABLE_PROJECTS flag
You don't need lli or llc in LLVM_ENABLE_PROJECTS because they're part
of baseline LLVM. But other than that it should have worked. What
error message did you get when you tried running "ninja llc" after
that CMake command?
Cheers.
Tim.
More information about the llvm-dev
mailing list