Use correct build flags for ARM64 vs x86_64
This commit is contained in:
parent
2f568e7785
commit
aa8e9b0647
@ -12,7 +12,7 @@ build:
|
|||||||
- "index.project.deepspeech.deepspeech.native_client.ios_arm64-tflite.${event.head.sha}"
|
- "index.project.deepspeech.deepspeech.native_client.ios_arm64-tflite.${event.head.sha}"
|
||||||
tensorflow: ${system.tensorflow.ios_arm64.url}
|
tensorflow: ${system.tensorflow.ios_arm64.url}
|
||||||
scripts:
|
scripts:
|
||||||
build: "taskcluster/ios-build.sh"
|
build: "taskcluster/ios-build.sh --arm64"
|
||||||
package: "taskcluster/package.sh"
|
package: "taskcluster/package.sh"
|
||||||
nc_asset_name: "native_client.arm64.tflite.ios.tar.xz"
|
nc_asset_name: "native_client.arm64.tflite.ios.tar.xz"
|
||||||
maxRunTime: 14400
|
maxRunTime: 14400
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
platform=$1
|
||||||
|
|
||||||
source $(dirname "$0")/tc-tests-utils.sh
|
source $(dirname "$0")/tc-tests-utils.sh
|
||||||
|
|
||||||
source $(dirname "$0")/tf_tc-vars.sh
|
source $(dirname "$0")/tf_tc-vars.sh
|
||||||
@ -10,7 +12,11 @@ BAZEL_TARGETS="
|
|||||||
//native_client:libdeepspeech.so
|
//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"
|
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0"
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ build:
|
|||||||
- "index.project.deepspeech.deepspeech.native_client.ios_x86_64-tflite.${event.head.sha}"
|
- "index.project.deepspeech.deepspeech.native_client.ios_x86_64-tflite.${event.head.sha}"
|
||||||
tensorflow: ${system.tensorflow.ios_x86_64.url}
|
tensorflow: ${system.tensorflow.ios_x86_64.url}
|
||||||
scripts:
|
scripts:
|
||||||
build: "taskcluster/ios-build.sh"
|
build: "taskcluster/ios-build.sh --x86_64"
|
||||||
package: "taskcluster/package.sh"
|
package: "taskcluster/package.sh"
|
||||||
nc_asset_name: "native_client.x86_64.tflite.ios.tar.xz"
|
nc_asset_name: "native_client.x86_64.tflite.ios.tar.xz"
|
||||||
maxRunTime: 14400
|
maxRunTime: 14400
|
||||||
|
Loading…
Reference in New Issue
Block a user