diff options
-rw-r--r-- | Android.bp | 22 | ||||
-rw-r--r-- | include/clang/Basic/IdentifierTable.h | 4 | ||||
-rw-r--r-- | lib/Android.bp | 6 |
3 files changed, 21 insertions, 11 deletions
diff --git a/Android.bp b/Android.bp index e3d8c85b33..8e8fbe9726 100644 --- a/Android.bp +++ b/Android.bp @@ -288,12 +288,16 @@ cc_library_shared { }, } -subdirs = [ - "lib", - "soong", - "utils/TableGen", - "tools/clang-check", - "tools/clang-format", - "tools/driver", - "tools/libclang", -] +genrule { + name: "renderscript-clang-include", + visibility: ["//development/build"], + tools: ["soong_zip"], + cmd: "$(location soong_zip) -o $(out) -P renderscript/clang-include " + + "-C $$(dirname $(location LICENSE.TXT))/lib/Headers -D $$(dirname $(location LICENSE.TXT))/lib/Headers " + + "-C $$(dirname $(location LICENSE.TXT)) -f $(location LICENSE.TXT)", + srcs: [ + "lib/Headers/**/*", + "LICENSE.TXT", + ], + out: ["clang-include.zip"], +} diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h index fffb50493b..c71df832ac 100644 --- a/include/clang/Basic/IdentifierTable.h +++ b/include/clang/Basic/IdentifierTable.h @@ -358,8 +358,8 @@ private: /// change to it should be reflected here. void RecomputeNeedsHandleIdentifier() { NeedsHandleIdentifier = - (isPoisoned() | hasMacroDefinition() | isCPlusPlusOperatorKeyword() | - isExtensionToken() | isFutureCompatKeyword() || isOutOfDate() || + (isPoisoned() || hasMacroDefinition() || isCPlusPlusOperatorKeyword() || + isExtensionToken() || isFutureCompatKeyword() || isOutOfDate() || isModulesImport()); } }; diff --git a/lib/Android.bp b/lib/Android.bp index 99b29fff05..6782f61fb5 100644 --- a/lib/Android.bp +++ b/lib/Android.bp @@ -9,3 +9,9 @@ package { } subdirs = ["*"] + +filegroup { + name: "rs_clang_headers", + srcs: ["Headers/*.h"], + path: "Headers", +} |