removed .gcda profiling info from objects list
This commit is contained in:
@@ -4,16 +4,12 @@
|
|||||||
clean_dir "$OBJDIR/objects"
|
clean_dir "$OBJDIR/objects"
|
||||||
rm -f "$EXEC_FILE"
|
rm -f "$EXEC_FILE"
|
||||||
|
|
||||||
# copy profiling info
|
# copy profiling info to $OBJDIR/objects/
|
||||||
prof_files=$(find "$OBJDIR/profile/" -name '*.gcda')
|
prof_files=$(find "$OBJDIR/profile/" -type f,l | tr '\n' ' ')
|
||||||
if [ -z "$prof_files" ]; then
|
if [ ! -z "$prof_files" ]; then
|
||||||
myprint "${YELLOW}no profiling info found"
|
myprint "${GREEN}profiling info found, copying to $OBJDIR/objects/"
|
||||||
else
|
myprint "${GRAY}$prof_files"
|
||||||
myprint "${GREEN}profiling info found"
|
cp $prof_files "$OBJDIR/objects/"
|
||||||
for prof_file in $prof_files; do
|
|
||||||
myprint "${GRAY}$(basename $prof_file)"
|
|
||||||
cp $prof_file "$OBJDIR/objects/"
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -z "$SRC_C" ] && compile_c "$CMP_C" "$STD_C" "$WARN_C" "$C_ARGS" "$INCLUDE" "$SRC_C"
|
[ ! -z "$SRC_C" ] && compile_c "$CMP_C" "$STD_C" "$WARN_C" "$C_ARGS" "$INCLUDE" "$SRC_C"
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ function pack_static_lib {
|
|||||||
local outfile="$1"
|
local outfile="$1"
|
||||||
myprint "${BLUE}outfile: ${GRAY}$outfile"
|
myprint "${BLUE}outfile: ${GRAY}$outfile"
|
||||||
|
|
||||||
local objects=$(find $OBJDIR/objects -type f,l | tr '\n' ' ')
|
local objects=$(find $OBJDIR/objects \( -name "*.o" -o -name "*.a" \) -type f,l | tr '\n' ' ')
|
||||||
myprint "${BLUE}objects: ${GRAY}$objects"
|
myprint "${BLUE}objects: ${GRAY}$objects"
|
||||||
if [ -z "$objects" ]; then
|
if [ -z "$objects" ]; then
|
||||||
error "no compiled objects found"
|
error "no compiled objects found"
|
||||||
@@ -252,7 +252,7 @@ function link {
|
|||||||
myprint "${BLUE}args: ${GRAY}$args"
|
myprint "${BLUE}args: ${GRAY}$args"
|
||||||
myprint "${BLUE}outfile: ${GRAY}$outfile"
|
myprint "${BLUE}outfile: ${GRAY}$outfile"
|
||||||
|
|
||||||
local objects=$(find $OBJDIR/objects -type f,l | tr '\n' ' ')
|
local objects=$(find $OBJDIR/objects \( -name "*.o" -o -name "*.a" \) -type f,l | tr '\n' ' ')
|
||||||
myprint "${BLUE}objects: ${GRAY}$objects"
|
myprint "${BLUE}objects: ${GRAY}$objects"
|
||||||
if [ -z "$objects" ]; then
|
if [ -z "$objects" ]; then
|
||||||
error "no compiled objects found"
|
error "no compiled objects found"
|
||||||
|
|||||||
Reference in New Issue
Block a user