Skip to content

Commit de224d6

Browse files
committed
configure: remove --ninja switch
It is unknown if there are any users of the ninja build and keeping it around makes refactoring the build system more difficult. It's partly broken (or at least, deeply inefficient) because it touches out/Makefile every time. PR-URL: #467 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent 48774ec commit de224d6

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

Makefile

-23
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
BUILDTYPE ?= Release
44
PYTHON ?= python
5-
NINJA ?= ninja
65
DESTDIR ?=
76
SIGN ?=
87
PREFIX ?= /usr/local
@@ -20,13 +19,6 @@ NODE_G_EXE = iojs_g$(EXEEXT)
2019
# or set the V environment variable to an empty string.
2120
V ?= 1
2221

23-
USE_NINJA ?= 0
24-
ifeq ($(USE_NINJA),1)
25-
ifneq ($(V),)
26-
NINJA := $(NINJA) -v
27-
endif
28-
endif
29-
3022
# BUILDTYPE=Debug builds both release and debug builds. If you want to compile
3123
# just the debug build, run `make -C out BUILDTYPE=Debug` instead.
3224
ifeq ($(BUILDTYPE),Release)
@@ -39,31 +31,16 @@ endif
3931
# to check for changes.
4032
.PHONY: $(NODE_EXE) $(NODE_G_EXE)
4133

42-
ifeq ($(USE_NINJA),1)
43-
$(NODE_EXE): config.gypi
44-
$(NINJA) -C out/Release/
45-
ln -fs out/Release/$(NODE_EXE) $@
46-
47-
$(NODE_G_EXE): config.gypi
48-
$(NINJA) -C out/Debug/
49-
ln -fs out/Debug/$(NODE_EXE) $@
50-
else
5134
$(NODE_EXE): config.gypi out/Makefile
5235
$(MAKE) -C out BUILDTYPE=Release V=$(V)
5336
ln -fs out/Release/$(NODE_EXE) $@
5437

5538
$(NODE_G_EXE): config.gypi out/Makefile
5639
$(MAKE) -C out BUILDTYPE=Debug V=$(V)
5740
ln -fs out/Debug/$(NODE_EXE) $@
58-
endif
5941

6042
out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/toolchain.gypi deps/v8/build/features.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
61-
ifeq ($(USE_NINJA),1)
62-
touch out/Makefile
63-
$(PYTHON) tools/gyp_node.py -f ninja
64-
else
6543
$(PYTHON) tools/gyp_node.py -f make
66-
endif
6744

6845
config.gypi: configure
6946
if [ -f $@ ]; then

configure

+1-9
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ parser.add_option('--gdb',
5151
dest='gdb',
5252
help='add gdb support')
5353

54-
parser.add_option('--ninja',
55-
action='store_true',
56-
dest='use_ninja',
57-
help='generate files for the ninja build system')
58-
5954
parser.add_option('--no-ifaddrs',
6055
action='store_true',
6156
dest='no_ifaddrs',
@@ -972,7 +967,6 @@ write('config.gypi', do_not_edit +
972967

973968
config = {
974969
'BUILDTYPE': 'Debug' if options.debug else 'Release',
975-
'USE_NINJA': str(int(options.use_ninja or 0)),
976970
'USE_XCODE': str(int(options.use_xcode or 0)),
977971
'PYTHON': sys.executable,
978972
}
@@ -987,9 +981,7 @@ write('config.mk',
987981

988982
gyp_args = [sys.executable, 'tools/gyp_node.py', '--no-parallel']
989983

990-
if options.use_ninja:
991-
gyp_args += ['-f', 'ninja-' + flavor]
992-
elif options.use_xcode:
984+
if options.use_xcode:
993985
gyp_args += ['-f', 'xcode']
994986
elif flavor == 'win' and sys.platform != 'msys':
995987
gyp_args += ['-f', 'msvs', '-G', 'msvs_version=auto']

0 commit comments

Comments
 (0)