1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| import("//llvm/tools/binutils_symlinks.gni")
import("//llvm/utils/gn/build/symlink_or_copy.gni")
symlinks = [ "llvm-addr2line" ]
if (llvm_install_binutils_symlinks) {
symlinks += [ "addr2line" ]
}
foreach(target, symlinks) {
symlink_or_copy(target) {
deps = [
":llvm-symbolizer",
]
source = "llvm-symbolizer"
output = "$root_out_dir/bin/$target"
}
}
# //:llvm-symbolizer depends on this symlink target, see comment in //BUILD.gn.
group("symlinks") {
deps = []
foreach(target, symlinks) {
deps += [ ":$target" ]
}
}
executable("llvm-symbolizer") {
deps = [
"//llvm/lib/DebugInfo/DWARF",
"//llvm/lib/DebugInfo/PDB",
"//llvm/lib/DebugInfo/Symbolize",
"//llvm/lib/Demangle",
"//llvm/lib/Object",
"//llvm/lib/Support",
]
sources = [
"llvm-symbolizer.cpp",
]
}
|