Skip to content

Commit bef157d

Browse files
committed
Fix monolith build
1 parent f5d0e21 commit bef157d

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

build-monolith

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,33 @@ cd "out/${BUILDTYPE}/obj.target"
1515

1616
platform=$(uname)
1717

18-
rm -vf "${LIBV8_MONOLITH}"
18+
rm -f "${LIBV8_MONOLITH}"
1919
case "${platform}" in
2020
"SunOS")
21-
/usr/xpg4/bin/find . -path "**/v8*/**/*.o" | xargs ar cqs "${LIBV8_MONOLITH}"
22-
/usr/xpg4/bin/find . -path "**/icu*/**/*.o" | xargs ar cqs "${LIBV8_MONOLITH}"
21+
/usr/xpg4/bin/find . -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | while read -r obj; do
22+
xargs ar cqS "${LIBV8_MONOLITH}" "${obj}"
23+
done
24+
ranlib "${LIBV8_MONOLITH}"
2325
;;
2426
"Darwin")
25-
#/usr/bin/find . -path "**/v8*/**/*.o" | xargs ar -q "${LIBV8_MONOLITH}"
26-
#/usr/bin/find . -path "**/icu*/**/*.o" | xargs ar -q "${LIBV8_MONOLITH}"
27-
/usr/bin/find . -path "**/v8*/**/*.o" -or -path "**/icu*/**/*.o" | sort | uniq | xargs ar -q "${LIBV8_MONOLITH}"
27+
/usr/bin/find . -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | while read -r obj; do
28+
/usr/bin/ar -cqS "${LIBV8_MONOLITH}" "${obj}"
29+
done
30+
/usr/bin/ranlib "${LIBV8_MONOLITH}"
2831
;;
2932
"Linux")
30-
find . -path './deps/v8/gypfiles/*.a' | while read -r lib; do
31-
ar -t "${lib}" | xargs ar -q "${LIBV8_MONOLITH}"
33+
find . -path './tools/v8/gypfiles/*.a' | while read -r lib; do
34+
ar -t "${lib}" | xargs ar -cqS "${LIBV8_MONOLITH}"
3235
done
3336
find . -path './tools/icu/*.a' | while read -r lib; do
34-
ar -t "${lib}" | xargs ar -q "${LIBV8_MONOLITH}"
37+
ar -t "${lib}" | xargs ar -cqS "${LIBV8_MONOLITH}"
3538
done
39+
ranlib "${LIBV8_MONOLITH}"
3640
;;
3741
*)
3842
echo "Unsupported platform: ${platform}"
3943
exit 1
4044
;;
4145
esac
4246

43-
mv -vf "${LIBV8_MONOLITH}" "${BASEDIR}/out/${BUILDTYPE}/${LIBV8_MONOLITH}"
47+
mv -f "${LIBV8_MONOLITH}" "${BASEDIR}/out/${BUILDTYPE}/${LIBV8_MONOLITH}"

0 commit comments

Comments
 (0)