File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ add_custom_target(inference_lib_dist DEPENDS ${inference_lib_dist_dep})
172
172
# paddle fluid version
173
173
execute_process (
174
174
COMMAND ${GIT_EXECUTABLE} log --pretty=format:%H -1
175
+ WORKING_DIRECTORY ${PADDLE_SOURCE_DIR}
175
176
OUTPUT_VARIABLE PADDLE_GIT_COMMIT )
176
177
set (version_file ${FLUID_INSTALL_DIR} /version.txt )
177
178
file (WRITE ${version_file}
Original file line number Diff line number Diff line change @@ -496,7 +496,9 @@ function gen_fluid_inference_lib() {
496
496
========================================
497
497
EOF
498
498
make -j ` nproc` inference_lib_dist
499
- tar -cf ${PADDLE_ROOT} /build/fluid.tgz ${PADDLE_ROOT} /build/fluid_install_dir
499
+ cd ${PADDLE_ROOT} /build
500
+ mv fluid_install_dir fluid
501
+ tar -cf fluid.tgz fluid
500
502
fi
501
503
}
502
504
You can’t perform that action at this time.
0 commit comments