File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ $(NODE_EXE) $(NODE_G_EXE): config.gypi out/Makefile
115
115
ln -fs out/${build_type} /$(NODE_EXE ) $@ ; fi
116
116
else
117
117
ifeq ($(BUILD_WITH ) , ninja)
118
+ NINJA ?= ninja
118
119
ifeq ($(V ) ,1)
119
120
NINJA_ARGS := $(NINJA_ARGS) -v
120
121
endif
@@ -124,11 +125,11 @@ else
124
125
NINJA_ARGS := $(NINJA_ARGS) $(filter -j%,$(MAKEFLAGS))
125
126
endif
126
127
$(NODE_EXE ) : config.gypi out/Release/build.ninja
127
- ninja -C out/Release $(NINJA_ARGS )
128
+ $( NINJA ) -C out/Release $(NINJA_ARGS )
128
129
if [ ! -r $@ ] || [ ! -L $@ ]; then ln -fs out/Release/$( NODE_EXE) $@ ; fi
129
130
130
131
$(NODE_G_EXE ) : config.gypi out/Debug/build.ninja
131
- ninja -C out/Debug $(NINJA_ARGS )
132
+ $( NINJA ) -C out/Debug $(NINJA_ARGS )
132
133
if [ ! -r $@ ] || [ ! -L $@ ]; then ln -fs out/Debug/$( NODE_EXE) $@ ; fi
133
134
else
134
135
$(NODE_EXE ) $(NODE_G_EXE ) :
Original file line number Diff line number Diff line change @@ -40,4 +40,13 @@ To create a debug build rather than a release build:
40
40
./configure --ninja --debug && make
41
41
```
42
42
43
+ ## Customizing ` ninja ` path
44
+
45
+ On some systems (such as RHEL7 and below), the Ninja binary might be installed
46
+ with a different name. For these systems use the ` NINJA ` env var:
47
+
48
+ ``` bash
49
+ ./configure --ninja && NINJA=" ninja-build" make
50
+ ```
51
+
43
52
[ Ninja ] : https://ninja-build.org/
You can’t perform that action at this time.
0 commit comments