Run the appropriate configure command:
$ ./configure --without-dtrace --without-etw --without-perfctr \
--without-ssl --without-inspector --without-intl --without-snapshot \
--dest-cpu x86 --without-bundled-v8
$ ./configure --without-dtrace --without-etw --without-perfctr \
--without-ssl --without-inspector --without-intl --without-snapshot \
--dest-cpu x64 --without-bundled-v8
$ CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ \
./configure --without-dtrace --without-etw --without-perfctr --without-ssl \
--without-inspector --without-intl --without-snapshot --dest-cpu arm \
--cross-compiling --dest-os=linux --with-arm-float-abi=hard --with-arm-fpu=neon \
--without-bundled-v8
The --without-bundled-v8
option was hijacked to force build Node with JerryScript.
Run make
. Optionally use make -j4
After build execute the following steps for a "hello" output:
$ echo "console.log('hello');" >> test.js
$ ./node test.js