HomePhabricator

[clang-tools-extra] Fix linking dylib for LLVMFrontendOpenMP

Authored by mgorny on Dec 18 2019, 1:10 PM.

Description

[clang-tools-extra] Fix linking dylib for LLVMFrontendOpenMP

Use LLVM_LINK_COMPONENTS to link the FrontendOpenMP library
instead of passing it explicitly to LINK_LIBS. This fixes duplicating
the library when clang-tidy is linked to LLVM dylib.

Differential Revision: https://reviews.llvm.org/D71674