summaryrefslogtreecommitdiff
path: root/build_kzip.bash
diff options
context:
space:
mode:
author Sasha Smundak <asmundak@google.com> 2020-01-09 17:34:23 -0800
committer Sasha Smundak <asmundak@google.com> 2020-01-15 12:40:03 -0800
commit6c2d4f91f8f8365ab67af244436f115878f27979 (patch)
tree28c89ff0f15f25e265e3db7e15906b180f1f30c5 /build_kzip.bash
parent5f5809a098ae6f679fcc11a9c56a80110b82c773 (diff)
Save compilation units in protobuf format.
Bug: 146224091 Test: manual Change-Id: I7a856bab13f54c78efa0061421c3fcb9341bc6e7
Diffstat (limited to 'build_kzip.bash')
-rwxr-xr-xbuild_kzip.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/build_kzip.bash b/build_kzip.bash
index 02b346d39..89cd067ba 100755
--- a/build_kzip.bash
+++ b/build_kzip.bash
@@ -6,12 +6,14 @@
# The following environment variables affect the result:
# BUILD_NUMBER build number, used to generate unique ID (will use UUID if not set)
# DIST_DIR where the resulting all.kzip will be placed
+# KYTHE_KZIP_ENCODING proto or json (proto is default)
# OUT_DIR output directory (out if not specified})
# TARGET_BUILD_VARIANT variant, e.g., `userdebug`
# TARGET_PRODUCT target device name, e.g., 'aosp_blueline'
# XREF_CORPUS source code repository URI, e.g., 'android.googlesource.com/platform/superproject'
: ${BUILD_NUMBER:=$(uuidgen)}
+: ${KYTHE_KZIP_ENCODING:=proto}
# The extraction might fail for some source files, so run with -k and then check that
# sufficiently many files were generated.