From f348305f971b345ed1c811d05550cd98d860edb0 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 27 May 2013 19:27:25 +0200 Subject: [PATCH] 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 --- lib/functions.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/functions.in b/lib/functions.in index e9e8b9c..161a87e 100644 --- a/lib/functions.in +++ b/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