diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index e3dcd2ece98e58e35244e9fe72b254232d4c45e2..cc84635dba0801fc5eafa17d96c853f02e8be530 100644 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -3680,9 +3680,17 @@ function run_setup(){ ccache -z cd .. if [ "${PYTHON_EXECUTABLE}" != "" ];then - ${PYTHON_EXECUTABLE} setup.py $2;build_error=$? + if [ "$SYSTEM" == "Darwin" ]; then + ${PYTHON_EXECUTABLE} setup.py $2 --plat-name=macosx_10_9_x86_64;build_error=$? + else + ${PYTHON_EXECUTABLE} setup.py $2;build_error=$? + fi else - python setup.py $2;build_error=$? + if [ "$SYSTEM" == "Darwin" ]; then + python setup.py $2 --plat-name=macosx_10_9_x86_64;build_error=$? + else + python setup.py $2;build_error=$? + fi fi # ci will collect ccache hit rate