Skip to content

libclang has no registered targets after r371787 #45154

@llvmbot

Description

@llvmbot
Bugzilla Link 45809
Resolution FIXED
Resolved on May 07, 2020 11:12
Version 10.0
OS Windows NT
Blocks #44654
Reporter LLVM Bugzilla Contributor
CC @jkorous-apple,@zygoloid,@tstellar
Fixed by commit(s) 02b3033 db810b6

Extended Description

After r371787 [0], when Rust's bindgen uses libclang, it fails with "no targets are registered" [1].

This only happens when we build LLVM with -DLLVM_LINK_LLVM_DYLIB=ON.

jkorous: I'm not clear on why LLVMSupport was added to libclang's CMakeLists.txt. If I remove that line, the code still compiles, and this bug goes away. I'm not familiar with this part of the code though -- do you have any idea what might be going on?

[0] https://reviews.llvm.org/rL371787
[1]

Error = "Unable to find target for this triple (no targets are registered)";

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions