Skip to content

Commit 1de25f2

Browse files
Myles Borinsevanlucas
Myles Borins
authored andcommitted
tools: do not build addons during compilation
The current makefile runs both `cctest` and `build-addons` in parallel under the assumption that both rely on `all`. Unfortunately `build-addons` does not rely on all, and there is an edge case where by it is possible to call `build-addons` while compilation is still happening. This patch takes the simplest route by forcing `build-addons` and `cctest` to run in sequence like the other test targets. This ensures that `build-addons` will never be run during compilation. It would be possible to modify `build-addons` to rely on `all` but it would be a much more aggressive change to the MAKEFILE for a fairly minor perf bump, as cctest is so fast. PR-URL: #6723 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 1370fdc commit 1de25f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ v8:
114114
tools/make-v8.sh v8
115115
$(MAKE) -C deps/v8 $(V8_ARCH) $(V8_BUILD_OPTIONS)
116116

117-
test: | build-addons cctest # Both targets depend on 'all'.
117+
test: all
118+
$(MAKE) build-addons
119+
$(MAKE) cctest
118120
$(PYTHON) tools/test.py --mode=release -J \
119121
addon doctool message parallel sequential
120122
$(MAKE) lint

0 commit comments

Comments
 (0)