[OpenMP] build offload plugins before testing them
authorBryan Chan <bryan.chan@huawei.com>
Thu, 28 Nov 2019 07:46:18 +0000 (02:46 -0500)
committerBryan Chan <bryan.chan@huawei.com>
Thu, 28 Nov 2019 22:43:56 +0000 (17:43 -0500)
commit4d3198e243fa450a4109fd72ae1999f1a13570fa
tree965dd5d764403d68845aa4b8ce86ecadb544e528
parent4adddbd8ad4f71e8ce4cb4a38c755b126c5e9eff
[OpenMP] build offload plugins before testing them

Summary:
"make check-all" or "make check-libomptarget" would attempt to run offloading
tests before the offload plugins are built. This patch corrects that by adding
dependencies to the libomptarget CMake rules.

Reviewers: jdoerfert

Subscribers: mgorny, guansong, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D70803
openmp/libomptarget/CMakeLists.txt
openmp/libomptarget/plugins/CMakeLists.txt
openmp/libomptarget/test/CMakeLists.txt