[llvm-bugs] [Bug 45809] New: libclang has no registered targets after r371787
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 5 13:26:25 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45809
Bug ID: 45809
Summary: libclang has no registered targets after r371787
Product: clang
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: dmajor at mozilla.com
CC: jkorous at apple.com, klimek at google.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Blocks: 45309
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]
https://github.com/llvm/llvm-project/blob/2946cd701067404b99c39fb29dc9c74bd7193eb3/llvm/lib/Support/TargetRegistry.cpp#L66
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=45309
[Bug 45309] [meta] 10.0.1 Release Blockers
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200505/dea4df46/attachment-0001.html>
More information about the llvm-bugs
mailing list