Profiling script: Add support for x86_64 devices.
PiperOrigin-RevId: 328844015 Change-Id: I2aac3dae64706bc64350507114f5367de348714e
This commit is contained in:
parent
440b9778f7
commit
c968fc4eff
@ -83,11 +83,17 @@ ADB push "$model_path" "$OPENCL_DIR"
|
||||
declare -a BUILD_CONFIG
|
||||
abi_version=$(ADB shell getprop ro.product.cpu.abi | tr -d '\r')
|
||||
if [[ "$abi_version" == "armeabi-v7a" ]]; then
|
||||
#"32 bit"
|
||||
#"32 bit ARM"
|
||||
BUILD_CONFIG=( --config=android_arm -c opt --copt=-fPIE --linkopt=-pie )
|
||||
else
|
||||
#"64 bit"
|
||||
elif [[ "$abi_version" == "arm64-v8a" ]]; then
|
||||
#"64 bit ARM"
|
||||
BUILD_CONFIG=( --config=android_arm64 -c opt )
|
||||
elif [[ "$abi_version" == "x86_64" ]]; then
|
||||
# x86_64
|
||||
BUILD_CONFIG=( --config=android_x86_64 -c opt )
|
||||
else
|
||||
echo "Error: Unknown processor ABI"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
bazel build "${BUILD_CONFIG[@]}" //$SHELL_DIR:$BINARY_NAME
|
||||
|
Loading…
Reference in New Issue
Block a user