[llvm-dev] HowToUseLLJIT example doesn't find targets for this triple.

661 views
Skip to first unread message

Haladas Luxgile via llvm-dev

unread,
Aug 11, 2021, 4:16:01 AM8/11/21
to llvm...@lists.llvm.org
Hello,

I'm trying to run the "HowToUseLLJIT" example in LLVM project, but it results in the message: "Unable to find target for this triple (no targets are registered)".

I have been trying to find information on this but I have been unable to find a fix or the reason this happens.

Moreover, If i add "InitializeAllTargetInfos();" it results in: "No available targets are compatible with triple 'x86_64-pc-windows-msvc'".

I'm using Visual Studio 2019 to compile my project. Please let me know if you need any more info I can provide.

Thanks,
Guillermo

Michael Kruse via llvm-dev

unread,
Aug 11, 2021, 12:30:33 PM8/11/21
to Haladas Luxgile, llvm-dev
Typically this is the result of not compiling the target backend.
Check the value of CMake's LLVM_TARGETS_TO_BUILD. It should be "X86"
or "all".

Michael

Am Mi., 11. Aug. 2021 um 03:16 Uhr schrieb Haladas Luxgile via
llvm-dev <llvm...@lists.llvm.org>:

> _______________________________________________
> LLVM Developers mailing list
> llvm...@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Reply all
Reply to author
Forward
0 new messages