[llvm] f12b7da - [gn build] Add missing dependencies to clang/lib/Basic

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 19 07:31:45 PDT 2021


Author: Nico Weber
Date: 2021-04-19T10:30:10-04:00
New Revision: f12b7daaf194ecf28c4b17e29ea618a98e6c7dc7

URL: https://github.com/llvm/llvm-project/commit/f12b7daaf194ecf28c4b17e29ea618a98e6c7dc7
DIFF: https://github.com/llvm/llvm-project/commit/f12b7daaf194ecf28c4b17e29ea618a98e6c7dc7.diff

LOG: [gn build] Add missing dependencies to clang/lib/Basic

These are needed when buildling `clang-format` in a clean build dir.
It's a bit unfortunate that clang's lib/Basic depends on these
random TableGen targets. In the CMake build, this is less visible
because I think all llvm-tblgen's complete before all compiles there
(not sure though).

Added: 
    

Modified: 
    llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
index ee8ae40ef2a02..12f5f15a59fb4 100644
--- a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
@@ -31,6 +31,10 @@ static_library("Basic") {
     "//clang/include/clang/Basic:diags_tablegen",
     "//clang/include/clang/Basic:riscv_vector_builtins",
     "//clang/include/clang/Basic:version",
+    # public_dep because public header AttributeCommonInfo.h includes generated AttrParsedAttrList.inc.
+    "//clang/include/clang/Sema:AttrParsedAttrList",
+    # public_dep because public header OpenMPKinds.h includes generated OMP.h.inc
+    "//llvm/include/llvm/Frontend/OpenMP:public_tablegen",
   ]
   deps = [
     ":write_vcsversion",
@@ -38,6 +42,8 @@ static_library("Basic") {
     "//clang/include/clang/Basic:arm_fp16",
     "//clang/include/clang/Basic:arm_neon",
     "//clang/include/clang/Config",
+    "//clang/include/clang/Sema:AttrParsedAttrKinds",
+    "//clang/include/clang/Sema:AttrSpellingListIndex",
     "//llvm/include/llvm/Config:llvm-config",
     "//llvm/lib/IR",
     "//llvm/lib/MC",


        


More information about the llvm-commits mailing list