[runtimes] Only depend on builtins for same target
authorShoaib Meenai <smeenai@fb.com>
Tue, 13 Dec 2022 05:51:14 +0000 (21:51 -0800)
committerShoaib Meenai <smeenai@fb.com>
Wed, 4 Jan 2023 11:26:02 +0000 (03:26 -0800)
commit72f3f6838fc4d3961868c6d7f6e08b9383cb2f8b
treeaf231b0f60c9b734e406fa8a1a749a7b5d88e4df
parenta73e0c306cdd653e0aa035fc89e91acf771bd318
[runtimes] Only depend on builtins for same target

We don't need to have built all the builtins before building the
runtimes for a particular target, only the builtins for that target.
While I'm here, rename the variable that stores the builtins dep to
something less generic than `deps`, to minimize the chances of
accidentally using a variable with the same name from an outer scope.

Reviewed By: phosek

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