[gn] Remove unneeded MC dep from llvm-tblgen
authorReid Kleckner <rnk@google.com>
Sat, 12 Sep 2020 00:43:49 +0000 (17:43 -0700)
committerReid Kleckner <rnk@google.com>
Sat, 12 Sep 2020 01:28:49 +0000 (18:28 -0700)
Tablegen does not have link time dependencies on MC. Having llvm-tblgen
depend on it causes it to be rebuilt in the gn build every time somebody
touches any cpp file in llvm/lib/MC* or llvm/lib/DebugInfo/Codeview*.
Touching tablegen invalidates most of the rest of the build, and
re-running it takes a while. This is is annoying for me when swapping
between branches that touch CodeView logic.

This dep was added to LLVMBuild.txt back in 2018, and presumably it was
carried over into the gn build.

Differential Revision: https://reviews.llvm.org/D87553

llvm/utils/TableGen/LLVMBuild.txt
llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn

index 5eec4e0..6293aa0 100644 (file)
@@ -18,4 +18,4 @@
 type = BuildTool
 name = tblgen
 parent = BuildTools
-required_libraries = Support TableGen MC
+required_libraries = Support TableGen
index 4559926..bd1382d 100644 (file)
@@ -1,7 +1,6 @@
 executable("llvm-tblgen") {
   deps = [
     "//llvm/include/llvm/Config:llvm-config",
-    "//llvm/lib/MC",
     "//llvm/lib/Support",
     "//llvm/lib/TableGen",
     "//llvm/utils/TableGen/GlobalISel",