[libc] Fix GPU fatbinary dependencies for multi-source object libraries
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 14 Mar 2023 19:59:27 +0000 (14:59 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 14 Mar 2023 20:04:37 +0000 (15:04 -0500)
commit597cef44869af2d7a8c123f2b44f3713bdc54a30
treee85ea14efcc0a29b0f674b5ec3c756632f8cc3ee
parent81a150656b7d856255d8073ec86fd304edd90aad
[libc] Fix GPU fatbinary dependencies for multi-source object libraries

Summary:
Multi-source object libraries require some additional handling, this
logic wasn't correctly settending the dependency on each filename
individually and was instead using the last one. This meant that only
the last file was built for multi-object libraries.
libc/cmake/modules/LLVMLibCObjectRules.cmake