diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 624203132fe929ad7d641328d7a3a81aa9906c42..fd3834ee21d8858016c3039cfea152904ac573e2 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -105,7 +105,7 @@ function cmake_gen() { -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_FLUID_ONLY=${WITH_FLUID_ONLY:-OFF} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - -DWITH_CONTRIB=ON + -DWITH_CONTRIB=${WITH_CONTRIB:-ON} ======================================== EOF # Disable UNITTEST_USE_VIRTUALENV in docker because @@ -132,7 +132,7 @@ EOF -DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake \ -DWITH_FLUID_ONLY=${WITH_FLUID_ONLY:-OFF} \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ - -DWITH_CONTRIB=ON + -DWITH_CONTRIB=${WITH_CONTRIB:-ON} } function abort(){