llvm.org GIT mirror llvm / ccf5494
gn build: Merge r358749 Since the symlinks list for llvm-symbolizer is now never empty, the :symlinks target no longer needs an explicit dep on :llvm-symbolizer -- there will be at least one dep on a symlink, and each symlink depends on :llvm-symbolizer already. Since llvm-symbolizer:symlinks now produces symlinks that check-llvm uses, make llvm/test depend on the symlink target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358861 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 5 months ago
3 changed file(s) with 11 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
226226 "//llvm/tools/llvm-size",
227227 "//llvm/tools/llvm-split",
228228 "//llvm/tools/llvm-strings",
229 "//llvm/tools/llvm-symbolizer",
229 "//llvm/tools/llvm-symbolizer:symlinks",
230230 "//llvm/tools/llvm-undname",
231231 "//llvm/tools/llvm-xray",
232232 "//llvm/tools/lto",
1010 }
1111 }
1212
13 # //:llvm-nm depends on this symlink target, see comment in //BUILD.gn.
13 # //:llvm-objdump depends on this symlink target, see comment in //BUILD.gn.
1414 group("symlinks") {
1515 deps = [
1616 ":llvm-objdump",
0 import("//llvm/tools/binutils_symlinks.gni")
11 import("//llvm/utils/gn/build/symlink_or_copy.gni")
22
3 symlinks = [ "llvm-addr2line" ]
34 if (llvm_install_binutils_symlinks) {
4 symlink_or_copy("addr2line") {
5 symlinks += [ "addr2line" ]
6 }
7 foreach(target, symlinks) {
8 symlink_or_copy(target) {
59 deps = [
610 ":llvm-symbolizer",
711 ]
812 source = "llvm-symbolizer"
9 output = "$root_out_dir/bin/addr2line"
13 output = "$root_out_dir/bin/$target"
1014 }
1115 }
1216
1317 # //:llvm-symbolizer depends on this symlink target, see comment in //BUILD.gn.
1418 group("symlinks") {
15 deps = [
16 ":llvm-symbolizer",
17 ]
18 if (llvm_install_binutils_symlinks) {
19 deps += [ ":addr2line" ]
19 deps = []
20 foreach(target, symlinks) {
21 deps += [ ":$target" ]
2022 }
2123 }
2224