[libc] Only add extra runtime dependencies if the target exists
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 5 Apr 2023 20:30:48 +0000 (15:30 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 5 Apr 2023 20:31:38 +0000 (15:31 -0500)
commit43d90f3056f91198169505eb2c8ccf47f384b877
treed3a99af9dc16bd9da1ac234a16e2d853d928618d
parentc61f45fc3e041606c5b94c468a5c092e8a6e5601
[libc] Only add extra runtime dependencies if the target exists

Summary:
If the target for these tools doesn't exist we should simply assume that
they will be provided externally. This allows building `libc` standalone
with an external installation of `clang`.
libc/cmake/modules/prepare_libc_gpu_build.cmake
llvm/runtimes/CMakeLists.txt