Skip to content

Commit 1486514

Browse files
committed
Optimize 'libexec/build-monolith' on Linux minorly
Build the symbol table after adding each file instead of continually rebuilding it.
1 parent 7254a69 commit 1486514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libexec/build-monolith

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ case "${platform}" in
2727
/usr/bin/find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs /usr/bin/ar -cq "${LIBV8_MONOLITH}"
2828
;;
2929
"Linux")
30-
find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar -cq "${LIBV8_MONOLITH}"
30+
find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar -cqS "${LIBV8_MONOLITH}"
31+
ranlib "${LIBV8_MONOLITH}"
3132
;;
3233
*)
3334
echo "Unsupported platform: ${platform}"

0 commit comments

Comments
 (0)