[Bazel] Derive targets from file presence as in CMake build
authorGeoffrey Martin-Noble <gcmn@google.com>
Thu, 29 Jul 2021 01:39:51 +0000 (18:39 -0700)
committerGeoffrey Martin-Noble <gcmn@google.com>
Fri, 30 Jul 2021 01:10:46 +0000 (18:10 -0700)
commit6fa2d0fbf4637c3db7c4a57eb4c8522c216c82ea
tree172b43066068165c7fd92a85c4bd318be43dc0ff
parente622c99f305dc1fe9385742079a9ac6f81f86d2e
[Bazel] Derive targets from file presence as in CMake build

This makes the logic used to determine if targets have the given
features the same as is used in CMake. Incidentally, it enables these
features for the targets added in https://reviews.llvm.org/D106921
which were missing because this was previously a hardcoded list.

Reviewed By: chandlerc

Differential Revision: https://reviews.llvm.org/D107019
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel