Skip to content

Commit

Permalink
erts: Use release target to build debug artifacts for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Dec 20, 2024
1 parent 1f28792 commit 59dd2b3
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions otp_build
Original file line number Diff line number Diff line change
Expand Up @@ -1257,20 +1257,13 @@ do_update_ex_doc ()
do_debuginfo_win32 ()
{
setup_make
(cd erts/emulator && $MAKE MAKE="$MAKE" TARGET=$TARGET debug) || exit 1
($MAKE MAKE="$MAKE" TARGET=$TARGET TYPE=debug) || exit 1
if [ -z "$1" ]; then
RELDIR="$ERL_TOP/release/$TARGET"
RELDIR="$ERL_TOP/release/$TARGET"
else
RELDIR="$1"
RELDIR="$1"
fi
BINDIR="$ERL_TOP/bin/$TARGET"
EVSN=$(grep '^VSN' erts/vsn.mk | sed 's,^VSN.*=[^0-9]*\([0-9].*\)$,@\1,g;s,^[^@].*,,g;s,^@,,g')
for f in beam.debug.smp.dll beam.debug.smp.dll.pdb beam.debug.jit.dll.pdb; do
if [ -f $BINDIR/$f ]; then
rm -f $RELDIR/erts-$EVSN/bin/$f
cp $BINDIR/$f $RELDIR/erts-$EVSN/bin/$f
fi
done
($MAKE release RELEASE_ROOT="$RELDIR" MAKE="$MAKE" TARGET=$TARGET TYPE=debug) || exit 1
}

do_installer_win32 ()
Expand Down

0 comments on commit 59dd2b3

Please sign in to comment.