Skip to content

Commit

Permalink
Release with separate debug info in ELF format
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor committed Jul 12, 2022
1 parent 7a7ab68 commit e00be05
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function _extra_release_variables {
package_one="OFF"
enable_compressed_debug_info="ON"
dump_symbols="OFF"
fi
fi
}

_default_release_variables
Expand Down Expand Up @@ -227,7 +227,15 @@ function dump_syms {
tmp=${pack#nebula-graph}
ver=${tmp%.*}

hash objcopy &> /dev/null || {
echo "'objcopy' is not installed"
exit 1
}

for bin in nebula-graphd nebula-storaged nebula-metad; do
# Create separate debuginfo for GDB
objcopy --only-keep-debug ${build_dir}/bin/${bin} ${syms_dir}/${bin}${ver}.debug
# Create separate debuginfo for breakpad
if ! (${dump_syms} ${build_dir}/bin/${bin} > ${syms_dir}/${bin}${ver}.sym); then
echo ">>> dump ${bin} symbols failed: $?. <<<"
exit 1
Expand Down

0 comments on commit e00be05

Please sign in to comment.