aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar Sanjoy Das <sanjoy@google.com>2018-07-30 15:26:57 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-30 15:30:51 -0700
commitefddd17519e43e956c3fa79981c408803521fe61 (patch)
treebc2517315a5bf260118b72763a72348c7896bd1d /third_party
parentf017a9b9b400e65e7d616675beb46fea24f8bb2a (diff)
For llvm_support_platform_specific_srcs_glob use a select-of-glob
instead of glob-of-select. This was suggested in https://github.com/tensorflow/tensorflow/commit/add96c8632df9596a73bf637d6b7015e9c7beaad#r29707275 PiperOrigin-RevId: 206657397
Diffstat (limited to 'third_party')
-rw-r--r--third_party/llvm/llvm.autogenerated.BUILD2
-rw-r--r--third_party/llvm/llvm.bzl11
2 files changed, 8 insertions, 5 deletions
diff --git a/third_party/llvm/llvm.autogenerated.BUILD b/third_party/llvm/llvm.autogenerated.BUILD
index c3b9ec4c25..0ac27e26a4 100644
--- a/third_party/llvm/llvm.autogenerated.BUILD
+++ b/third_party/llvm/llvm.autogenerated.BUILD
@@ -1942,7 +1942,7 @@ cc_library(
"include/llvm/BinaryFormat/COFF.h",
"include/llvm/BinaryFormat/MachO.h",
"lib/Support/*.h",
- ] + llvm_support_platform_specific_srcs_glob),
+ ]) + llvm_support_platform_specific_srcs_glob(),
hdrs = glob([
"include/llvm/Support/*.h",
"include/llvm/Support/*.def",
diff --git a/third_party/llvm/llvm.bzl b/third_party/llvm/llvm.bzl
index c5bebc9f2f..d493a3c476 100644
--- a/third_party/llvm/llvm.bzl
+++ b/third_party/llvm/llvm.bzl
@@ -289,7 +289,10 @@ llvm_copts = []
# Platform specific sources for libSupport.
-llvm_support_platform_specific_srcs_glob = [
- "lib/Support/Unix/*.inc",
- "lib/Support/Unix/*.h",
-]
+def llvm_support_platform_specific_srcs_glob():
+ return select({
+ "//conditions:default": native.glob([
+ "lib/Support/Unix/*.inc",
+ "lib/Support/Unix/*.h",
+ ]),
+ })