Skip to content

Commit

Permalink
[Cherry-pick] Fix static check (#46253)
Browse files Browse the repository at this point in the history
* fix static_check error when compile twice (#46140)

* [CI] fix static check in build_pr_dev (#46192)

Co-authored-by: Zhou Wei <[email protected]>
  • Loading branch information
sljlp and zhwesky2010 authored Sep 20, 2022
1 parent ac8cce2 commit 7712ce1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 7712ce1

Please sign in to comment.