Skip to content

Commit d8ba248

Browse files
committed
Strip symbols in release builds only
Words cannot describe the rage one feels when you wait 30 minutes for a debug build to compile, only to find out it's been stripped of actual debug symbols.
1 parent 8feda0e commit d8ba248

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libexec/inject-libv8

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ for lib in libv8_monolith.a; do
5656
"$AR" "$AREXTRACTFLAGS" "$BASEDIR/out/${BUILDTYPE}/$lib"
5757

5858
# strip all objects
59-
"$FIND" -type f -exec "$STRIP" -Sx {} +
59+
if [ "$BUILDTYPE" = "Release" ]; then
60+
"$FIND" -type f -exec "$STRIP" -Sx {} +
61+
fi
6062

6163
# rebuild the archive
6264
"$FIND" -type f -exec "$AR" "$ARCOLLECTFLAGS" "../$lib" {} +

0 commit comments

Comments
 (0)