From f2757354f711e1554ed0ff7a10fa589bb8c891ed Mon Sep 17 00:00:00 2001 From: Daniel Robbins Date: Thu, 21 Dec 2023 19:01:29 +0800 Subject: [PATCH] Show symbols vis for pychdb and libchdb --- chdb/build.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/chdb/build.sh b/chdb/build.sh index 3af2a5c4c0c..31644244330 100755 --- a/chdb/build.sh +++ b/chdb/build.sh @@ -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