removed .gcda profiling info from objects list

This commit is contained in:
2026-06-09 23:15:27 +05:00
parent 33020d2b18
commit 886be342af
2 changed files with 8 additions and 12 deletions

View File

@@ -226,7 +226,7 @@ function pack_static_lib {
local outfile="$1"
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"
if [ -z "$objects" ]; then
error "no compiled objects found"
@@ -252,7 +252,7 @@ function link {
myprint "${BLUE}args: ${GRAY}$args"
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"
if [ -z "$objects" ]; then
error "no compiled objects found"