summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
author Pirama Arumuga Nainar <pirama@google.com> 2021-06-24 15:59:38 -0700
committer Pirama Arumuga Nainar <pirama@google.com> 2021-06-25 11:57:16 -0700
commit2558ce3890b8c9d7dd2aea1a608aaf5d8d3299fe (patch)
tree09621493bb1f9651767c7dd21b9fa8a5a5e4df0e /Android.bp
parent770193da6c61669458f76fa347470232772809cc (diff)
[scripts] Add script to print clang prebuilts version
Bug: http://b/187231324 This script parses soong/cc/config/global.go to return clang prebuilts version. (It may get the version from a json config file in the future.) Currently it's used in development/scripts/symbol.py and is the recommended way to get clang prebuilts version number in the future. Test: get_clang_version_test.py Change-Id: Id92a74fd523a5270999bb4d6454525bf2f2f0c04
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 45e661e78..d6260b400 100644
--- a/Android.bp
+++ b/Android.bp
@@ -116,3 +116,13 @@ cc_genrule {
dex_bootjars {
name: "dex_bootjars",
}
+
+// Pseudo-test that's run on checkbuilds to ensure that get_clang_version can
+// parse cc/config/global.go.
+genrule {
+ name: "get_clang_version_test",
+ cmd: "$(location get_clang_version) > $(out)",
+ tools: ["get_clang_version"],
+ srcs: ["cc/config/global.go"],
+ out: ["clang-prebuilts-version.txt"],
+}