From 27befb62e00ff89dbde76a24faac38f4adc7b239 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 5 Jul 2021 14:43:05 -0400 Subject: [PATCH] [gn build] (manually) port 98f078324fc5 (llvm-strings Opts.td) --- utils/gn/secondary/llvm/tools/llvm-strings/BUILD.gn | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/gn/secondary/llvm/tools/llvm-strings/BUILD.gn b/utils/gn/secondary/llvm/tools/llvm-strings/BUILD.gn index c88c72990bc..0e8ed93fce4 100644 --- a/utils/gn/secondary/llvm/tools/llvm-strings/BUILD.gn +++ b/utils/gn/secondary/llvm/tools/llvm-strings/BUILD.gn @@ -1,6 +1,12 @@ import("//llvm/tools/binutils_symlinks.gni") +import("//llvm/utils/TableGen/tablegen.gni") import("//llvm/utils/gn/build/symlink_or_copy.gni") +tablegen("Opts") { + visibility = [ ":llvm-strings" ] + args = [ "-gen-opt-parser-defs" ] +} + if (llvm_install_binutils_symlinks) { symlink_or_copy("strings") { deps = [ ":llvm-strings" ] @@ -19,8 +25,10 @@ group("symlinks") { executable("llvm-strings") { deps = [ + ":Opts", "//llvm/lib/IR", "//llvm/lib/Object", + "//llvm/lib/Option", "//llvm/lib/Support", ] sources = [ "llvm-strings.cpp" ]