forked from OSchip/llvm-project
[gn build] Add some llvm/tools: llvm-cxxdump, llvm-cxxfilt, llvm-cxxmap
Needed for check-llvm. This is the last target reading llvm_install_binutils_symlinks. Differential Revision: https://reviews.llvm.org/D56190 llvm-svn: 350215
This commit is contained in:
parent
b2139db1b0
commit
f0ee87b4f3
|
@ -5,6 +5,9 @@ group("default") {
|
|||
deps = [
|
||||
"//clang/test",
|
||||
"//lld/test",
|
||||
"//llvm/tools/llvm-cxxdump",
|
||||
"//llvm/tools/llvm-cxxfilt",
|
||||
"//llvm/tools/llvm-cxxmap",
|
||||
"//llvm/tools/llvm-diff",
|
||||
"//llvm/tools/llvm-dwp",
|
||||
"//llvm/tools/llvm-exegesis",
|
||||
|
@ -86,6 +89,11 @@ group("llvm-nm") {
|
|||
"//llvm/tools/llvm-nm:symlinks",
|
||||
]
|
||||
}
|
||||
group("llvm-cxxfilt") {
|
||||
deps = [
|
||||
"//llvm/tools/llvm-cxxfilt:symlinks",
|
||||
]
|
||||
}
|
||||
group("llvm-objcopy") {
|
||||
deps = [
|
||||
"//llvm/tools/llvm-objcopy:symlinks",
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
executable("llvm-cxxdump") {
|
||||
deps = [
|
||||
"//llvm/lib/Object",
|
||||
"//llvm/lib/Support",
|
||||
"//llvm/lib/Target:TargetsToBuild",
|
||||
]
|
||||
sources = [
|
||||
"Error.cpp",
|
||||
"llvm-cxxdump.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
import("//llvm/tools/binutils_symlinks.gni")
|
||||
import("//llvm/utils/gn/build/symlink_or_copy.gni")
|
||||
|
||||
if (llvm_install_binutils_symlinks) {
|
||||
symlink_or_copy("cxxfilt") { # Can't have '+' in target name.
|
||||
deps = [
|
||||
":llvm-cxxfilt",
|
||||
]
|
||||
source = "llvm-cxxfilt"
|
||||
output = "$root_out_dir/bin/c++filt" # Note: c++filt, not cxxfilt
|
||||
}
|
||||
}
|
||||
|
||||
# //:llvm-cxxfilt depends on this symlink target, see comment in //BUILD.gn.
|
||||
group("symlinks") {
|
||||
deps = [
|
||||
":llvm-cxxfilt",
|
||||
]
|
||||
if (llvm_install_binutils_symlinks) {
|
||||
deps += [ ":cxxfilt" ]
|
||||
}
|
||||
}
|
||||
|
||||
executable("llvm-cxxfilt") {
|
||||
deps = [
|
||||
"//llvm/lib/Demangle",
|
||||
"//llvm/lib/Support",
|
||||
]
|
||||
sources = [
|
||||
"llvm-cxxfilt.cpp",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
executable("llvm-cxxmap") {
|
||||
deps = [
|
||||
"//llvm/lib/IR",
|
||||
"//llvm/lib/Support",
|
||||
"//llvm/lib/Target:TargetsToBuild",
|
||||
]
|
||||
sources = [
|
||||
"llvm-cxxmap.cpp",
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue