Use correct build flags for ARM64 vs x86_64

This commit is contained in:
Reuben Morais 2020-07-16 01:46:19 +02:00
parent 2f568e7785
commit aa8e9b0647
3 changed files with 9 additions and 3 deletions

View File

@ -12,7 +12,7 @@ build:
- "index.project.deepspeech.deepspeech.native_client.ios_arm64-tflite.${event.head.sha}"
tensorflow: ${system.tensorflow.ios_arm64.url}
scripts:
build: "taskcluster/ios-build.sh"
build: "taskcluster/ios-build.sh --arm64"
package: "taskcluster/package.sh"
nc_asset_name: "native_client.arm64.tflite.ios.tar.xz"
maxRunTime: 14400

View File

@ -2,6 +2,8 @@
set -xe
platform=$1
source $(dirname "$0")/tc-tests-utils.sh
source $(dirname "$0")/tf_tc-vars.sh
@ -10,7 +12,11 @@ BAZEL_TARGETS="
//native_client:libdeepspeech.so
"
BAZEL_BUILD_FLAGS="--config=ios_arm64 --define=runtime=tflite ${BAZEL_EXTRA_FLAGS}"
if [ "${platform}" = "--arm64" ]; then
BAZEL_BUILD_FLAGS="${BAZEL_IOS_ARM64_FLAGS} ${BAZEL_EXTRA_FLAGS}"
else
BAZEL_BUILD_FLAGS="${BAZEL_IOS_X86_64_FLAGS} ${BAZEL_EXTRA_FLAGS}"
fi
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0"

View File

@ -12,7 +12,7 @@ build:
- "index.project.deepspeech.deepspeech.native_client.ios_x86_64-tflite.${event.head.sha}"
tensorflow: ${system.tensorflow.ios_x86_64.url}
scripts:
build: "taskcluster/ios-build.sh"
build: "taskcluster/ios-build.sh --x86_64"
package: "taskcluster/package.sh"
nc_asset_name: "native_client.x86_64.tflite.ios.tar.xz"
maxRunTime: 14400