33 lines
770 B
Plaintext
33 lines
770 B
Plaintext
|
import("//llvm/tools/binutils_symlinks.gni")
|
||
|
import("//llvm/utils/gn/build/symlink_or_copy.gni")
|
||
|
|
||
|
if (llvm_install_binutils_symlinks) {
|
||
|
symlink_or_copy("nm") {
|
||
|
deps = [ ":llvm-nm" ]
|
||
|
source = "llvm-nm"
|
||
|
output = "$root_out_dir/bin/nm"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
# //:llvm-nm depends on this symlink target, see comment in //BUILD.gn.
|
||
|
group("symlinks") {
|
||
|
deps = [ ":llvm-nm" ]
|
||
|
if (llvm_install_binutils_symlinks) {
|
||
|
deps += [ ":nm" ]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
executable("llvm-nm") {
|
||
|
deps = [
|
||
|
"//llvm/lib/Bitcode/Reader",
|
||
|
"//llvm/lib/Demangle",
|
||
|
"//llvm/lib/IR",
|
||
|
"//llvm/lib/Object",
|
||
|
"//llvm/lib/Support",
|
||
|
"//llvm/lib/Target:AllTargetsAsmParsers",
|
||
|
"//llvm/lib/Target:AllTargetsDescs",
|
||
|
"//llvm/lib/Target:AllTargetsInfos",
|
||
|
]
|
||
|
sources = [ "llvm-nm.cpp" ]
|
||
|
}
|