aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
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",
+ ]),
+ })