Skip to content

Commit

Permalink
Add debug option in build script
Browse files Browse the repository at this point in the history
Signed-off-by: Florin Postolache <[email protected]>
  • Loading branch information
flpostolache committed Mar 24, 2023
1 parent 82ad22f commit af76a0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions node/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

DEBUG_ARGS=" --debug --debug-node --debug-lib"
ARGS="--fully-static --enable-static --download=all --with-intl=full-icu"

if [ $# -eq 1 ] && [ $1 == "debug" ];
then
ARGS+=$DEBUG_ARGS
fi

# Clean up.
rm -rf node-*

Expand All @@ -15,11 +23,11 @@ pushd node-v18.14.0 > /dev/null 2>&1 || exit

sed -i 's/o\[\x27libraries\x27] += \[\x27-static\x27]/o\[\x27libraries\x27] += \[\x27-static-pie\x27]/' configure.py

echo "Configuring nodejs ... "
./configure --fully-static --enable-static --download=all --with-intl=full-icu
echo -n "Configuring nodejs ... "
./configure $ARGS &> /dev/null
echo ""

echo "Building nodejs ... "
echo -n "Building nodejs ... "
make -j$(nproc) &> /dev/null
echo ""

Expand Down
Binary file removed node/node
Binary file not shown.

0 comments on commit af76a0c

Please sign in to comment.