Skip to content

Commit b807e61

Browse files
committed
Pass $BITS and $CPU environment variables to Node.js build module
1 parent b5af174 commit b807e61

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

scripts/build

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ source $TOOLCHAIN/scripts/adjustEnvVars.sh || exit $?
1616
PATH=$TOOLCHAIN/bin:$PATH
1717

1818

19+
# Build cross-compiler (if needed)
20+
(
21+
cd $TOOLCHAIN
22+
BITS=$BITS CPU=$CPU MACHINE=$MACHINE npm run build || exit $?
23+
) || exit $?
24+
25+
1926
if [[ -z $OS ]]; then
2027
OS="`uname`"
2128
fi
@@ -37,13 +44,6 @@ case $OS in
3744
esac
3845

3946

40-
# Build cross-compiler (if needed)
41-
(
42-
cd $TOOLCHAIN
43-
MACHINE=$MACHINE npm run build || exit $?
44-
) || exit $?
45-
46-
4747
#
4848
# Define steps paths
4949
#

0 commit comments

Comments
 (0)