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: [email protected]
Reporter: [email protected]
CC: [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs