[runtimes] Ensure required deps for tests targets are actually built
authorLeonard Chan <leonardchan@google.com>
Wed, 29 Sep 2021 21:40:28 +0000 (14:40 -0700)
committerLeonard Chan <leonardchan@google.com>
Wed, 29 Sep 2021 21:41:33 +0000 (14:41 -0700)
commit79b422080612fec7fb720052378f448174c016c7
tree96ded7c71739b59f7684942181489f54f90f22a9
parent45288edb6500da98e9a3f133da0f14d0f7586c5b
[runtimes] Ensure required deps for tests targets are actually built

When building compiler-rt via runtimes, many tests fail because tools like
FileCheck and count aren't built yet. This is because the RUNTIME_TEST_DEPENDENCIES
haven't been added to any of the compiler-rt targets. The fix is to explicitly
add any runtimes as test_targets.

Differential Revision: https://reviews.llvm.org/D109625
llvm/runtimes/CMakeLists.txt