Skip to content

Commit 320e8df

Browse files
committed
Use find on Linux
1 parent 289fbed commit 320e8df

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

build-monolith

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ case "${platform}" in
3030
/usr/bin/ranlib "${LIBV8_MONOLITH}"
3131
;;
3232
"Linux")
33-
find . -path './tools/v8/gypfiles/*.a' | while read -r lib; do
34-
ar -t "${lib}" | xargs ar -cqS "${LIBV8_MONOLITH}"
35-
done
36-
find . -path './tools/icu/*.a' | while read -r lib; do
37-
ar -t "${lib}" | xargs ar -cqS "${LIBV8_MONOLITH}"
33+
find . -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | while read -r obj; do
34+
ar -cqS "${LIBV8_MONOLITH}" "${obj}"
3835
done
3936
ranlib "${LIBV8_MONOLITH}"
4037
;;

0 commit comments

Comments
 (0)