[llvm-dev] Unable to get started with LLI and LLC
Jagrat Patkar via llvm-dev
llvm-dev at lists.llvm.org
Wed Dec 2 18:19:20 PST 2020
If I execute the following command from the *build directory*
(llvm-project/build)
*cmake -G Ninja ../llvm/tools/llc *
then I am getting the following error
*CMake Error: The source
"/Users/jagratpatkar/Desktop/ComputerScience/llvm-project/llvm/tools/llc/CMakeLists.txt"
does not match the source
"/Users/jagratpatkar/Desktop/ComputerScience/llvm-project/llvm/CMakeLists.txt"
used to generate cache. Re-run cmake with a different source directory.*
Thanks!
Jagrat Patkar.
On Wed, Dec 2, 2020 at 5:55 PM Tim Northover <t.p.northover at gmail.com>
wrote:
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201203/2fcf7b6b/attachment.html>
More information about the llvm-dev
mailing list