[gn build] Fix build of merge-fdata in a clean build dir
authorNico Weber <thakis@chromium.org>
Mon, 5 Dec 2022 20:42:42 +0000 (15:42 -0500)
committerNico Weber <thakis@chromium.org>
Mon, 5 Dec 2022 20:44:30 +0000 (15:44 -0500)
merge-fdata doesn't depend on any libraries except Support,
but it includes headers that require Attributes.inc to exist.
Add a dep that ensures that it does exist.
Corresponds to the intrinsics_gen dep in CMake.

llvm/utils/gn/secondary/bolt/tools/merge-fdata/BUILD.gn

index 3e6aed7..e75e124 100644 (file)
@@ -1,6 +1,9 @@
 executable("merge-fdata") {
   configs += [ "//llvm/utils/gn/build:bolt_code" ]
-  deps = [ "//llvm/lib/Support" ]
+  deps = [
+    "//llvm/include/llvm/IR:public_tablegen",
+    "//llvm/lib/Support",
+  ]
   sources = [ "merge-fdata.cpp" ]
 
   # Emit relocations for BOLT meta test