From 9c16924931c5df7990e9f5dd5d34760bbe3736ae Mon Sep 17 00:00:00 2001 From: jakecastelli <959672929@qq.com> Date: Wed, 15 May 2024 23:52:05 +0930 Subject: [PATCH] doc: improve ninja build for --built-in-modules-path The current ninja build does not work with `--node-builtin-modules-path` flag without passing `--ninja` as it will use `make` to build from scratch again. --- doc/contributing/building-node-with-ninja.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/contributing/building-node-with-ninja.md b/doc/contributing/building-node-with-ninja.md index 01a04c3c2cfbe23..56118292366c4f5 100644 --- a/doc/contributing/building-node-with-ninja.md +++ b/doc/contributing/building-node-with-ninja.md @@ -32,6 +32,12 @@ make -j4 # With this flag, Ninja will limit itself to 4 parallel jobs, # regardless of the number of cores on the current machine. ``` +If you wish to only modify JS layer in `lib`, you can use: + +```bash +./configure --ninja --node-builtin-modules-path "$(pwd)" +``` + ## Producing a debug build To create a debug build rather than a release build: