diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-mc/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-mc/BUILD.gn index 653c5c01d596..b8063cb62de6 100644 --- a/llvm/utils/gn/secondary/llvm/tools/llvm-mc/BUILD.gn +++ b/llvm/utils/gn/secondary/llvm/tools/llvm-mc/BUILD.gn @@ -3,10 +3,7 @@ executable("llvm-mc") { "//llvm/lib/MC", "//llvm/lib/MC/MCParser", "//llvm/lib/Support", - "//llvm/lib/Target:AllTargetsAsmParsers", - "//llvm/lib/Target:AllTargetsDescs", - "//llvm/lib/Target:AllTargetsDisassemblers", - "//llvm/lib/Target:AllTargetsInfos", + "//llvm/lib/Target:TargetsToBuild", ] sources = [ "Disassembler.cpp", diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn index ac8027c95f74..5a8aed018390 100644 --- a/llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn +++ b/llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn @@ -3,10 +3,7 @@ executable("llvm-ml") { "//llvm/lib/MC", "//llvm/lib/MC/MCParser", "//llvm/lib/Support", - "//llvm/lib/Target:AllTargetsAsmParsers", - "//llvm/lib/Target:AllTargetsDescs", - "//llvm/lib/Target:AllTargetsDisassemblers", - "//llvm/lib/Target:AllTargetsInfos", + "//llvm/lib/Target:TargetsToBuild", ] sources = [ "Disassembler.cpp",