Fix PluginsTests failure on Windows buildbots by enabling it everywhere
authorReid Kleckner <rnk@google.com>
Wed, 25 Apr 2018 20:16:24 +0000 (20:16 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 25 Apr 2018 20:16:24 +0000 (20:16 +0000)
commite765d633c4be0a33e9f9705b6effb3a2b15cac57
tree392a9e18d0d504be2fe6c4b7c52d7c13a4da8278
parentdce46fa1cf10f6f2714791688e56067362646a6d
Fix PluginsTests failure on Windows buildbots by enabling it everywhere

lit is picking up a stale executable in the unittests tree, which is
failing on Windows.

To simplify the CMake and avoid problems like this in the future, now we
always compile the test, but the test exits successfully when plugins
are not enabled.

llvm-svn: 330867
llvm/unittests/Passes/CMakeLists.txt
llvm/unittests/Passes/PluginsTest.cpp