gn build: Reland c52efdc5, "gn build: (manually) merge b5913e6d2f"

Because b5913e6d2f landed again as c54959c0.
This commit is contained in:
Peter Collingbourne 2019-11-22 18:05:19 -08:00
parent 9f13a032b6
commit 62335188f3
1 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,11 @@ import("//llvm/tools/binutils_symlinks.gni")
import("//llvm/utils/TableGen/tablegen.gni")
import("//llvm/utils/gn/build/symlink_or_copy.gni")
tablegen("InstallNameToolOpts") {
visibility = [ ":llvm-objcopy" ]
args = [ "-gen-opt-parser-defs" ]
}
tablegen("ObjcopyOpts") {
visibility = [ ":llvm-objcopy" ]
args = [ "-gen-opt-parser-defs" ]
@ -12,7 +17,10 @@ tablegen("StripOpts") {
args = [ "-gen-opt-parser-defs" ]
}
symlinks = [ "llvm-strip" ]
symlinks = [
"llvm-install-name-tool",
"llvm-strip",
]
if (llvm_install_binutils_symlinks) {
symlinks += [
"objcopy",
@ -39,6 +47,7 @@ group("symlinks") {
executable("llvm-objcopy") {
deps = [
":InstallNameToolOpts",
":ObjcopyOpts",
":StripOpts",
"//llvm/lib/MC",