Use all CPU cores for building TFLite.
@@ -87,6 +87,7 @@ if [[ "${CK_ANDROID_NDK_ROOT_DIR}" ]]; then
echo "Building Android package..."
make -f ${TFLITE_MAKE_DIR}/Makefile \
+ -j ${CK_HOST_CPU_NUMBER_OF_PROCESSORS} \
TARGET=ANDROID \
NDK_ROOT="$CK_ANDROID_NDK_ROOT_DIR" \
ANDROID_ARCH="$CK_ANDROID_ABI" \
@@ -97,7 +98,8 @@ else
echo
echo "Building Linux package..."
- make -f ${TFLITE_MAKE_DIR}/Makefile
+ make -f ${TFLITE_MAKE_DIR}/Makefile \
+ -j ${CK_HOST_CPU_NUMBER_OF_PROCESSORS}
exit_if_error
fi
