未验证 提交 7a299c78 编写于 作者: S sangoly 提交者: GitHub

[Publish] fix publish compile (#1850)

* [Publish] fix publish compile

* update build.sh to clean build dir
上级 36419766
......@@ -20,7 +20,7 @@ if (NOT LITE_ON_TINY_PUBLISH)
else()
add_library(paddle_lite_jni SHARED "")
target_sources(paddle_lite_jni PUBLIC ${__lite_cc_files} paddle_lite_jni.cc tensor_jni.cc)
#add_dependencies(paddle_lite_jni ${lib_DEPS} ${arm_kernels} ${npu_kernels})
add_dependencies(paddle_lite_jni op_list_h kernel_list_h)
endif()
if (APPLE)
......
......@@ -32,6 +32,10 @@ function make_tiny_publish_so {
cur_dir=$(pwd)
build_dir=$cur_dir/build.lite.${os}.${abi}.${lang}
if [ -d $build_dir ]
then
rm -rf $build_dir
fi
mkdir -p $build_dir
cd $build_dir
......@@ -56,6 +60,10 @@ function make_full_publish_so {
cur_dir=$(pwd)
build_dir=$cur_dir/build.lite.${os}.${abi}.${lang}
if [ -d $build_dir ]
then
rm -rf $build_dir
fi
mkdir -p $build_dir
cd $build_dir
......@@ -79,6 +87,10 @@ function make_all_tests {
cur_dir=$(pwd)
build_dir=$cur_dir/build.lite.${os}.${abi}.${lang}
if [ -d $build_dir ]
then
rm -rf $build_dir
fi
mkdir -p $build_dir
cd $build_dir
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册