llvm.org GIT mirror llvm / 102d41b
[gn build] Add some llvm/tools: llvm-diff, llvm-dwp Needed for check-llvm. Differential Revision: https://reviews.llvm.org/D56189 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350214 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
3 changed file(s) with 58 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
44 deps = [
55 "//clang/test",
66 "//lld/test",
7 "//llvm/tools/llvm-diff",
8 "//llvm/tools/llvm-dwp",
79 "//llvm/tools/llvm-exegesis",
810 "//llvm/tools/llvm-extract",
911 "//llvm/tools/llvm-link",
7375 "//llvm/tools/llvm-ar:symlinks",
7476 ]
7577 }
78 group("llvm-dwp") {
79 deps = [
80 "//llvm/tools/llvm-dwp:symlinks",
81 ]
82 }
7683 group("llvm-nm") {
7784 deps = [
7885 "//llvm/tools/llvm-nm:symlinks",
0 executable("llvm-diff") {
1 deps = [
2 "//llvm/lib/IR",
3 "//llvm/lib/IRReader",
4 "//llvm/lib/Support",
5 ]
6 sources = [
7 "DiffConsumer.cpp",
8 "DiffLog.cpp",
9 "DifferenceEngine.cpp",
10 "llvm-diff.cpp",
11 ]
12 }
0 import("//llvm/tools/binutils_symlinks.gni")
1 import("//llvm/utils/gn/build/symlink_or_copy.gni")
2
3 if (llvm_install_binutils_symlinks) {
4 symlink_or_copy("dwp") {
5 deps = [
6 ":llvm-dwp",
7 ]
8 source = "llvm-dwp"
9 output = "$root_out_dir/bin/dwp"
10 }
11 }
12
13 # //:llvm-dwp depends on this symlink target, see comment in //BUILD.gn.
14 group("symlinks") {
15 deps = [
16 ":llvm-dwp",
17 ]
18 if (llvm_install_binutils_symlinks) {
19 deps += [ ":dwp" ]
20 }
21 }
22
23 executable("llvm-dwp") {
24 deps = [
25 "//llvm/lib/CodeGen/AsmPrinter",
26 "//llvm/lib/DebugInfo/DWARF",
27 "//llvm/lib/MC",
28 "//llvm/lib/Object",
29 "//llvm/lib/Support",
30 "//llvm/lib/Target",
31 "//llvm/lib/Target:TargetsToBuild",
32 ]
33 sources = [
34 "DWPError.cpp",
35 "llvm-dwp.cpp",
36 ]
37 }