提交 cd3f5e9b 编写于 作者: Z zhupengyang 提交者: GitHub

[compiling] fix `build_linux.sh` (#3523)

上级 c01478f8
......@@ -52,7 +52,6 @@ readonly CMAKE_COMMON_OPTIONS="-DWITH_LITE=ON \
-DWITH_TESTING=OFF"
# mutable options for linux compiling.
function init_cmake_mutable_options {
cmake_mutable_options="-DARM_TARGET_ARCH_ABI=$ARCH \
-DARM_TARGET_LANG=$TOOLCHAIN \
-DLITE_BUILD_EXTRA=$WITH_EXTRA \
......@@ -258,6 +257,11 @@ function main {
shift
;;
# ON or OFF, default OFF
--with_python=*)
WITH_PYTHON="${i#*=}"
shift
;;
# ON or OFF, default OFF
--with_cv=*)
WITH_CV="${i#*=}"
shift
......@@ -277,20 +281,11 @@ function main {
OPTMODEL_DIR="${i#*=}"
shift
;;
# ON or OFF, default OFF
# compiling lib which can operate on opencl and cpu.
--with_opencl=*)
WITH_OPENCL="${i#*=}"
shift
;;
# compiling lib which can operate on huawei npu.
--with_rockchip_npu=*)
WITH_ROCKCHIP_NPU="${i#*=}"
shift
;;
--rockchip_npu_sdk_root=*)
ROCKCHIP_NPU_SDK_ROOT="${i#*=}"
shift
;;
# compiling lib which can operate on rockchip npu.
--with_rockchip_npu=*)
WITH_ROCKCHIP_NPU="${i#*=}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册