From: Nico Weber Date: Mon, 19 Apr 2021 14:30:10 +0000 (-0400) Subject: [gn build] Add missing dependencies to clang/lib/Basic X-Git-Tag: llvmorg-14-init~9210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f12b7daaf194ecf28c4b17e29ea618a98e6c7dc7;p=platform%2Fupstream%2Fllvm.git [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). --- diff --git a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn index ee8ae40..12f5f15 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",