aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-09-06 11:42:32 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-06 11:56:13 -0700
commita4e95ed683c6ccc68a5761ac1b5706402ccfb9c3 (patch)
tree5557766f88aef34a1f35dc6808d37c561c8ad2b4 /third_party
parentb51f4c97e899e7663b6cf39b9b8da41540b06e4c (diff)
Fix LLVM remote builds.
Currently the build files for LLVM are not correctly listing all headers that are needed for compilation via dependencies, and bazel does not currently support include scanning. Until either of this changes, glob all files that are potentially included in the "config" target that everything depends on. PiperOrigin-RevId: 211842334
Diffstat (limited to 'third_party')
-rw-r--r--third_party/llvm/llvm.autogenerated.BUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/third_party/llvm/llvm.autogenerated.BUILD b/third_party/llvm/llvm.autogenerated.BUILD
index 0ac27e26a4..776935739a 100644
--- a/third_party/llvm/llvm.autogenerated.BUILD
+++ b/third_party/llvm/llvm.autogenerated.BUILD
@@ -109,16 +109,23 @@ template_rule(
)
# A common library that all LLVM targets depend on.
+# TODO(b/113996071): We need to glob all potentially #included files and stage
+# them here because LLVM's build files are not strict headers clean, and remote
+# build execution requires all inputs to be depended upon.
cc_library(
name = "config",
- hdrs = [
+ hdrs = glob([
+ "**/*.h",
+ "**/*.def",
+ "**/*.inc.cpp",
+ ]) + [
"include/llvm/Config/AsmParsers.def",
"include/llvm/Config/AsmPrinters.def",
"include/llvm/Config/Disassemblers.def",
"include/llvm/Config/Targets.def",
- "include/llvm/Config/abi-breaking.h",
"include/llvm/Config/config.h",
"include/llvm/Config/llvm-config.h",
+ "include/llvm/Config/abi-breaking.h",
],
defines = llvm_defines,
includes = ["include"],