[gn build] (manually) port f0ca8d2461 (debuginfod-find)

This commit is contained in:
Nico Weber 2021-12-14 14:04:43 -05:00
parent a82a19c137
commit 5ac14cd167
3 changed files with 32 additions and 0 deletions

View File

@ -71,6 +71,9 @@ group("llvm-nm") {
group("llvm-cxxfilt") { group("llvm-cxxfilt") {
deps = [ "//llvm/tools/llvm-cxxfilt:symlinks" ] deps = [ "//llvm/tools/llvm-cxxfilt:symlinks" ]
} }
group("llvm-debuginfod-find") {
deps = [ "//llvm/tools/llvm-debuginfod-find:symlinks" ]
}
group("llvm-objcopy") { group("llvm-objcopy") {
deps = [ "//llvm/tools/llvm-objcopy:symlinks" ] deps = [ "//llvm/tools/llvm-objcopy:symlinks" ]
} }

View File

@ -58,6 +58,7 @@ write_lit_config("lit_site_cfg") {
# (That check also checks LLVM_HOST_TRIPLE.) # (That check also checks LLVM_HOST_TRIPLE.)
"HOST_LDFLAGS=", "HOST_LDFLAGS=",
"LLVM_ENABLE_CURL=0",
"LLVM_ENABLE_FFI=0", "LLVM_ENABLE_FFI=0",
"LLVM_HAVE_OPT_VIEWER_MODULES=0", "LLVM_HAVE_OPT_VIEWER_MODULES=0",
"LLVM_HOST_TRIPLE=$llvm_current_triple", "LLVM_HOST_TRIPLE=$llvm_current_triple",
@ -246,6 +247,7 @@ group("test") {
"//llvm/tools/llvm-cxxdump", "//llvm/tools/llvm-cxxdump",
"//llvm/tools/llvm-cxxfilt", "//llvm/tools/llvm-cxxfilt",
"//llvm/tools/llvm-cxxmap", "//llvm/tools/llvm-cxxmap",
"//llvm/tools/llvm-debuginfod-find:symlinks",
"//llvm/tools/llvm-diff", "//llvm/tools/llvm-diff",
"//llvm/tools/llvm-dis", "//llvm/tools/llvm-dis",
"//llvm/tools/llvm-dwarfdump", "//llvm/tools/llvm-dwarfdump",

View File

@ -0,0 +1,27 @@
import("//llvm/tools/binutils_symlinks.gni")
import("//llvm/utils/gn/build/symlink_or_copy.gni")
if (llvm_install_binutils_symlinks) {
symlink_or_copy("debuginfod-find") {
deps = [ ":llvm-debuginfod-find" ]
source = "llvm-debuginfod-find"
output = "$root_out_dir/bin/debuginfod-find"
}
}
# //:llvm-debuginfod-find depends on this symlink target, see comment in
# //BUILD.gn.
group("symlinks") {
deps = [ ":llvm-debuginfod-find" ]
if (llvm_install_binutils_symlinks) {
deps += [ ":debuginfod-find" ]
}
}
executable("llvm-debuginfod-find") {
deps = [
"//llvm/lib/Debuginfod",
"//llvm/lib/Support",
]
sources = [ "llvm-debuginfod-find.cpp" ]
}