OSDN Git Service

[Unittests] Fix plugins test
authorMikhail Maltsev <mikhail.maltsev@arm.com>
Thu, 19 Apr 2018 14:02:46 +0000 (14:02 +0000)
committerMikhail Maltsev <mikhail.maltsev@arm.com>
Thu, 19 Apr 2018 14:02:46 +0000 (14:02 +0000)
commit08c3a991721916400f56da4928f841d0bb304d02
tree0d30ea46a19469374fd519c08e5611f8e6ff250d
parent90bb2289e6eaa5ea79bcec9f3f7c0423a10ccdb9
[Unittests] Fix plugins test

Summary:
Currently the PluginsTests.LoadPlugin unit test is failing in
LLVM configurations that have LLVM_EXPORT_SYMBOLS_FOR_PLUGINS enabled
because the EnableABIBreakingChecks symbol is missing.

This patch fixes the issue by linking some additional libraries to the
test plugin if LLVM_EXPORT_SYMBOLS_FOR_PLUGINS is enabled.

Reviewers: philip.pfaffe

Reviewed By: philip.pfaffe

Subscribers: mgorny, llvm-commits, rogfer01

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330329 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Passes/CMakeLists.txt