未验证 提交 a14bac6a 编写于 作者: Z zhupengyang 提交者: GitHub

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

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