Browse Source

lib/functions.in: improved split_debug_files() to check earlier if we need to skip the processing of the file according to the file name

stable/0.5
Christian Wiese 11 years ago
parent
commit
f348305f97
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      lib/functions.in

+ 5
- 5
lib/functions.in

@ -965,6 +965,11 @@ split_debug_files() {
for x in $( fl_wrparse -D -s -r "$xroot/" < $builddir/fl_wrapper.wlog | sort -u ); do
local is_elf=false
# files we do not process
case $( basename $root/$x ) in
$objcopycmd|*.a) continue ;;
esac
# process regular files only
[ "$( stat --printf="%F" $root/$x )" = "regular file" ] || continue;
@ -977,11 +982,6 @@ split_debug_files() {
$objdumpcmd -s -j .gnu_debuglink $root/$x &>/dev/null && has_gnu_debuglink=true
if $has_gnu_debuglink; then continue; fi
# files we do not process
case $( basename $root/$x ) in
$objcopycmd|*.a) continue ;;
esac
# create destination directory for the debug info file if needed
local debugdir=$( dirname $root/$libdir/debug/$x )
[ -d $debugdir ] || mkdir -p $debugdir

Loading…
Cancel
Save