diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 9ffde5df9673f192b8970ea832fd0328950969b2..7481888174b5134a720ecfcaa4996b50f87ca8a2 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -554,7 +554,7 @@ function gen_capi_package() { function gen_fluid_inference_lib() { mkdir -p ${PADDLE_ROOT}/build cd ${PADDLE_ROOT}/build - if [ ${WITH_C_API:-OFF} == "OFF" ] ; then + if [[ ${WITH_C_API:-OFF} == "OFF" && ${WITH_INFERENCE:-ON} == "ON" ]] ; then cat <