Skip to content

Commit

Permalink
Show symbols vis for pychdb and libchdb
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Robbins authored and auxten committed Dec 21, 2023
1 parent 9297d68 commit f275735
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions chdb/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,18 @@ echo -e "\nfile info of ${LIBCHDB}"
file ${LIBCHDB}

rm -f ${CHDB_DIR}/*.so
mv ${PYCHDB} ${CHDB_DIR}/${CHDB_PY_MODULE}
mv ${LIBCHDB} ${PROJ_DIR}/${LIBCHDB_SO}
cp -a ${PYCHDB} ${CHDB_DIR}/${CHDB_PY_MODULE}
cp -a ${LIBCHDB} ${PROJ_DIR}/${LIBCHDB_SO}

echo -e "\nSymbols:"
nm ${PYCHDB} | grep PyInit || true
nm ${LIBCHDB} | grep PyInit || true
nm ${PYCHDB} | grep query_stable || true
nm ${LIBCHDB} | grep query_stable || true

echo -e "\nAfter copy:"
cd ${PROJ_DIR} && pwd
ls -lh ${PROJ_DIR}

# strip the binary (no debug info at all)
# strip ${CHDB_DIR}/${CHDB_PY_MODULE} || true
Expand Down

0 comments on commit f275735

Please sign in to comment.