未验证 提交 6992a62f 编写于 作者: H huzhiqiang 提交者: GitHub

[Compile] with_extra will be set ON automatically if with_strip=ON #4097

上级 7891e570
......@@ -146,6 +146,10 @@ function make_tiny_publish_so {
prepare_opencl_source_code $workspace $build_dir
fi
if [ "${WITH_STRIP}" == "ON" ]; then
WITH_EXTRA=ON
fi
local cmake_mutable_options="
-DLITE_BUILD_EXTRA=$WITH_EXTRA \
......@@ -199,6 +203,10 @@ function make_full_publish_so {
prepare_opencl_source_code $workspace $build_dir
fi
if [ "${WITH_STRIP}" == "ON" ]; then
WITH_EXTRA=ON
fi
local cmake_mutable_options="
-DLITE_BUILD_EXTRA=$WITH_EXTRA \
-DLITE_WITH_LOG=$WITH_LOG \
......
......@@ -49,6 +49,10 @@ function make_ios {
exit 1
fi
if [ "${WITH_STRIP}" == "ON" ]; then
WITH_EXTRA=ON
fi
build_dir=$workspace/build.ios.${os}.${arch}
if [ -d $build_dir ]
then
......@@ -61,7 +65,6 @@ function make_ios {
GEN_CODE_PATH_PREFIX=lite/gen_code
mkdir -p ./${GEN_CODE_PATH_PREFIX}
touch ./${GEN_CODE_PATH_PREFIX}/__generated_code__.cc
cmake $workspace \
-DWITH_LITE=ON \
-DLITE_WITH_ARM=ON \
......
......@@ -173,6 +173,9 @@ function make_tiny_publish_so {
if [ "${WITH_OPENCL}" = "ON" ]; then
prepare_opencl_source_code $workspace $build_dir
fi
if [ "${WITH_STRIP}" == "ON" ]; then
WITH_EXTRA=ON
fi
init_cmake_mutable_options
cmake $workspace \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册