Skip to content

Commit 70bb0ee

Browse files
committed
change the install prefix for capi, cherry-pick from develop
test=release/1.0.0
1 parent 644bad1 commit 70bb0ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,10 +629,10 @@ EOF
629629

630630
function gen_capi_package() {
631631
if [[ ${WITH_C_API} == "ON" ]]; then
632-
install_prefix="${PADDLE_ROOT}/build/capi_output"
633-
rm -rf $install_prefix
634-
make DESTDIR="$install_prefix" install
635-
cd $install_prefix/usr/local
632+
capi_install_prefix=${INSTALL_PREFIX:-/paddle/build}/capi_output
633+
rm -rf $capi_install_prefix
634+
make DESTDIR="$capi_install_prefix" install
635+
cd $capi_install_prefix/
636636
ls | egrep -v "^Found.*item$" | xargs tar -czf ${PADDLE_ROOT}/build/paddle.tgz
637637
fi
638638
}

0 commit comments

Comments
 (0)