Skip to content

Commit

Permalink
Strip symbols in release builds only
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bnoordhuis committed Oct 7, 2024
1 parent 5a35928 commit fde85c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libexec/inject-libv8
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ for lib in libv8_monolith.a; do
"$AR" "$AREXTRACTFLAGS" "$BASEDIR/out/${BUILDTYPE}/$lib"

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

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

0 comments on commit fde85c5

Please sign in to comment.