未验证 提交 7712ce14 编写于 作者: R Roc 提交者: GitHub

[Cherry-pick] Fix static check (#46253)

* fix static_check error when compile twice (#46140)

* [CI] fix static check in build_pr_dev (#46192)
Co-authored-by: zhouweiwei2014's avatarZhou Wei <1183042833@qq.com>
上级 ac8cce20
......@@ -68,6 +68,9 @@ function cmake_base() {
# Delete previous built whl packages
rm -rf python/dist 2>/dev/null || true
# Delete previous built paddle cache
rm -rf python/paddle 2>/dev/null || true
# Support build for all python3 versions
PYTHON_FLAGS=""
SYSTEM=`uname -s`
......@@ -991,7 +994,7 @@ function generate_upstream_develop_api_spec() {
mkdir -p ${PADDLE_ROOT}/build/pr_whl && mv ${PADDLE_ROOT}/build/python/dist/*.whl ${PADDLE_ROOT}/build/pr_whl/
echo "pr_whl_size: ${pr_whl_size}"
rm -rf ${PADDLE_ROOT}/build/Makefile ${PADDLE_ROOT}/build/CMakeCache.txt
rm -rf ${PADDLE_ROOT}/build/Makefile ${PADDLE_ROOT}/build/CMakeCache.txt ${PADDLE_ROOT}/build/python/paddle
cmake_change=`git diff --name-only upstream/$BRANCH | grep "cmake/external" || true`
cd ${PADDLE_ROOT}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册