summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-06-13 20:25:18 +0000
committerNico Weber <nicolasweber@gmx.de>2019-06-13 20:25:18 +0000
commit9c6806b16412c05ea742d6a8ddafb8b97c27f18b (patch)
tree41d4893eae0484058c181ad744452d035e9e79b3
parentccecd22db9c0d3f50ad7ca7b3d86a9c13ca001fd (diff)
downloadbcm5719-llvm-9c6806b16412c05ea742d6a8ddafb8b97c27f18b.tar.gz
bcm5719-llvm-9c6806b16412c05ea742d6a8ddafb8b97c27f18b.zip
gn build: Merge r363242
llvm-svn: 363324
-rw-r--r--llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn8
-rw-r--r--llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn8
2 files changed, 7 insertions, 9 deletions
diff --git a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
index bbd56848947..7d67a2f96ce 100644
--- a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
@@ -89,14 +89,6 @@ clang_tablegen("AttrHasAttributeImpl") {
td_file = "Attr.td"
}
-clang_tablegen("OpenCLBuiltins") {
- args = [
- "-gen-clang-opencl-builtins",
- "-I",
- rebase_path("../..", root_out_dir),
- ]
-}
-
# Misc
clang_tablegen("arm_neon") {
diff --git a/llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn
index 53649562dab..ab7486dfd23 100644
--- a/llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn
@@ -1,8 +1,14 @@
+import("//clang/utils/TableGen/clang_tablegen.gni")
+
+clang_tablegen("OpenCLBuiltins") {
+ args = [ "-gen-clang-opencl-builtins" ]
+}
+
static_library("Sema") {
output_name = "clangSema"
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
- "//clang/include/clang/Basic:OpenCLBuiltins",
+ ":OpenCLBuiltins",
"//clang/include/clang/Sema:AttrParsedAttrImpl",
"//clang/include/clang/Sema:AttrParsedAttrKinds",
"//clang/include/clang/Sema:AttrParsedAttrList",
OpenPOWER on IntegriCloud