[gn build] llvm-lipo, llvm-libtool-darwin symlink targets now dep on binary

This fixes a regression from 69cde915e923d: If llvm_install_cctools_symlinks
is false, depending llvm-lipo:symlinks didn't actually depend on llvm-lipo
and the binary didn't get built as dependency of `check-lld` (because the
`symlinks` array ended up empty).
This commit is contained in:
Nico Weber 2022-04-04 09:18:24 -04:00
parent a4f73b9b14
commit b0abada8fe
2 changed files with 4 additions and 2 deletions

View File

@ -12,8 +12,9 @@ if (llvm_install_cctools_symlinks) {
# //:llvm-libtool-darwin depends on this symlink target, see comment in
# //BUILD.gn.
group("symlinks") {
deps = [ ":llvm-libtool-darwin" ]
if (llvm_install_cctools_symlinks) {
deps = [ ":libtool" ]
deps += [ ":libtool" ]
}
}

View File

@ -17,8 +17,9 @@ if (llvm_install_cctools_symlinks) {
# //:llvm-lipo depends on this symlink target, see comment in //BUILD.gn.
group("symlinks") {
deps = [ ":llvm-lipo" ]
if (llvm_install_cctools_symlinks) {
deps = [ ":lipo" ]
deps += [ ":lipo" ]
}
}