Add --config=monolithic to TFLite build_aar.sh.

This is required for building AARs.

Fixes #46989

PiperOrigin-RevId: 356620673
Change-Id: I8904b96449e80f52c753cc3d7acc13605eae7910
This commit is contained in:
Yu-Cheng Ling 2021-02-09 16:34:19 -08:00 committed by TensorFlower Gardener
parent 1f5361389a
commit 6b8040d39c

View File

@ -122,6 +122,7 @@ function generate_flex_aar {
# Build the aar package.
bazel ${CACHE_DIR_FLAG} build -c opt --cxxopt='--std=c++14' \
--config=monolithic \
--fat_apk_cpu=${TARGET_ARCHS} \
--host_crosstool_top=@bazel_tools//tools/cpp:toolchain \
//tmp:tensorflow-lite-select-tf-ops
@ -178,6 +179,7 @@ fi
# Build the standard aar package of no models provided.
if [ -z ${FLAG_MODELS} ]; then
bazel ${CACHE_DIR_FLAG} build -c opt --cxxopt='--std=c++14' \
--config=monolithic \
--fat_apk_cpu=${TARGET_ARCHS} \
--host_crosstool_top=@bazel_tools//tools/cpp:toolchain \
//tensorflow/lite/java:tensorflow-lite