1 import("//llvm/tools/binutils_symlinks.gni")
2 import("//llvm/utils/gn/build/symlink_or_copy.gni")
4 symlinks = [ "llvm-addr2line" ]
5 if (llvm_install_binutils_symlinks) {
6 symlinks += [ "addr2line" ]
8 foreach(target, symlinks) {
9 symlink_or_copy(target) {
13 source = "llvm-symbolizer"
14 output = "$root_out_dir/bin/$target"
18 # //:llvm-symbolizer depends on this symlink target, see comment in //BUILD.gn.
21 foreach(target, symlinks) {
22 deps += [ ":$target" ]
26 executable("llvm-symbolizer") {
28 "//llvm/lib/DebugInfo/DWARF",
29 "//llvm/lib/DebugInfo/PDB",
30 "//llvm/lib/DebugInfo/Symbolize",
31 "//llvm/lib/Demangle",
36 "llvm-symbolizer.cpp",