[llvm-bugs] [Bug 48191] New: ASTMatchers.h imposes link-dependency on LLVMFrontendOpenMP
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 16 11:12:49 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48191
Bug ID: 48191
Summary: ASTMatchers.h imposes link-dependency on
LLVMFrontendOpenMP
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Tooling
Assignee: unassignedclangbugs at nondot.org
Reporter: anton.kreuzkamp at kdab.com
CC: llvm-bugs at lists.llvm.org
Created attachment 24165
--> https://bugs.llvm.org/attachment.cgi?id=24165&action=edit
CMakeLists.txt used to setup compilation for minimal example
One could argue whether this is a bug, but it seems at least unintended that
since clang 11.0 ASTMatchers.h imposes a dependency on libLLVMFrontendOpenMP.
I.e. apparently any clang tool that uses AST matchers must link against
libLLVMFrontendOpenMP.
Attached is a minimal example to reproduce the bug. It's an empty program,
doing nothing but #include "ASTMatchers.h". It's then linked against clang-cpp
and LLVMCore, which should be enough and was enough with clang 10. Now it gives
a linker error.
This can be worked around, by adding `LLVMFrontendOpenMP` to the list of linked
libraries.
--
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/20201116/b17528d1/attachment.html>
More information about the llvm-bugs
mailing list