Skip to content

Commit f9660d0

Browse files
committed
Make sure nqp-m is built before trying to build MoarVM files
This allows us to build nqp-js in parallel via the -j option
1 parent 0df6ef3 commit f9660d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/build/Makefile-JS.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ JS_STAGE1 = $(JS_BUILD_DIR)/stage1
44
JS_STAGE2 = $(JS_BUILD_DIR)/stage2
55
JS_NQP = ./$(M_RUNNER)$(BAT)
66
js-runner-default: js-all
7-
$(JS_STAGE1)/QAST/Compiler.moarvm: src/vm/js/QAST/Compiler.nqp
7+
$(JS_STAGE1)/QAST/Compiler.moarvm: m-all src/vm/js/QAST/Compiler.nqp
88
$(MKPATH) $(JS_STAGE1)/QAST
99
$(JS_NQP) --module-path=$(JS_STAGE1) --target=mbc --output=$(JS_STAGE1)/QAST/Compiler.moarvm src/vm/js/QAST/Compiler.nqp
1010
$(MKPATH) gen/moar/stage2/QAST
1111
$(CP) $(JS_STAGE1)/QAST/Compiler.moarvm gen/moar/stage2/QAST/Compiler.moarvm
1212

13-
$(JS_STAGE1)/HLL/Backend.moarvm: src/vm/js/HLL/Backend.nqp $(JS_STAGE1)/QAST/Compiler.moarvm
13+
$(JS_STAGE1)/HLL/Backend.moarvm: m-all src/vm/js/HLL/Backend.nqp $(JS_STAGE1)/QAST/Compiler.moarvm
1414
$(MKPATH) $(JS_STAGE1)/HLL
1515
$(JS_NQP) --module-path=$(JS_STAGE1) --target=mbc --output=$(JS_STAGE1)/HLL/Backend.moarvm src/vm/js/HLL/Backend.nqp
1616
$(MKPATH) gen/moar/stage2/HLL
@@ -22,7 +22,7 @@ $(JS_STAGE2)/$(NQP_MO_COMBINED): $(NQP_MO_SOURCES)
2222

2323
$(PERL) tools/build/gen-cat.pl js $(NQP_MO_SOURCES) > $(JS_STAGE2)/$(NQP_MO_COMBINED)
2424

25-
$(JS_STAGE2)/nqpmo.moarvm: $(JS_STAGE1_COMPILER) $(JS_STAGE2)/$(NQP_MO_COMBINED)
25+
$(JS_STAGE2)/nqpmo.moarvm: m-all $(JS_STAGE1_COMPILER) $(JS_STAGE2)/$(NQP_MO_COMBINED)
2626
$(MKPATH) $(JS_STAGE2)
2727
$(JS_NQP) --module-path gen/js/stage1 src/vm/js/bin/cross-compile.nqp --setting=NULL --target=mbc --output $(JS_STAGE2)/nqpmo.moarvm $(JS_STAGE2)/$(NQP_MO_COMBINED) > node_modules/nqpmo.js
2828

@@ -31,7 +31,7 @@ $(JS_STAGE2)/$(CORE_SETTING_COMBINED).nqp: $(CORE_SETTING_SOURCES)
3131

3232
$(PERL) tools/build/gen-cat.pl js $(CORE_SETTING_SOURCES) > $(JS_STAGE2)/$(CORE_SETTING_COMBINED).nqp
3333

34-
$(JS_STAGE2)/NQPCORE.setting.moarvm: $(JS_STAGE1_COMPILER) $(JS_STAGE2)/$(CORE_SETTING_COMBINED).nqp $(JS_STAGE2)/nqpmo.moarvm
34+
$(JS_STAGE2)/NQPCORE.setting.moarvm: m-all $(JS_STAGE1_COMPILER) $(JS_STAGE2)/$(CORE_SETTING_COMBINED).nqp $(JS_STAGE2)/nqpmo.moarvm
3535
$(MKPATH) $(JS_STAGE2)
3636
$(JS_NQP) --module-path gen/js/stage1 src/vm/js/bin/cross-compile.nqp --setting=NULL --target=mbc --output $(JS_STAGE2)/NQPCORE.setting.moarvm $(JS_STAGE2)/$(CORE_SETTING_COMBINED).nqp > node_modules/NQPCORE.setting.js
3737

@@ -40,7 +40,7 @@ $(JS_STAGE2)/$(QASTNODE_COMBINED): $(QASTNODE_SOURCES)
4040

4141
$(PERL) tools/build/gen-cat.pl js $(QASTNODE_SOURCES) > $(JS_STAGE2)/$(QASTNODE_COMBINED)
4242

43-
$(JS_STAGE2)/QASTNode.moarvm: $(JS_STAGE1_COMPILER) $(JS_STAGE2)/$(QASTNODE_COMBINED) $(JS_STAGE2)/NQPCORE.setting.moarvm
43+
$(JS_STAGE2)/QASTNode.moarvm: m-all $(JS_STAGE1_COMPILER) $(JS_STAGE2)/$(QASTNODE_COMBINED) $(JS_STAGE2)/NQPCORE.setting.moarvm
4444
$(MKPATH) $(JS_STAGE2)
4545
$(JS_NQP) --module-path gen/js/stage1 src/vm/js/bin/cross-compile.nqp --setting=NQPCORE --target=mbc --output $(JS_STAGE2)/QASTNode.moarvm $(JS_STAGE2)/$(QASTNODE_COMBINED) > node_modules/QASTNode.js
4646

@@ -49,7 +49,7 @@ $(JS_STAGE2)/$(QREGEX_COMBINED): $(QREGEX_SOURCES)
4949

5050
$(PERL) tools/build/gen-cat.pl js $(QREGEX_SOURCES) > $(JS_STAGE2)/$(QREGEX_COMBINED)
5151

52-
$(JS_STAGE2)/QRegex.moarvm: $(JS_STAGE1_COMPILER) $(JS_STAGE2)/$(QREGEX_COMBINED) $(JS_STAGE2)/NQPCORE.setting.moarvm $(JS_STAGE2)/QASTNode.moarvm
52+
$(JS_STAGE2)/QRegex.moarvm: m-all $(JS_STAGE1_COMPILER) $(JS_STAGE2)/$(QREGEX_COMBINED) $(JS_STAGE2)/NQPCORE.setting.moarvm $(JS_STAGE2)/QASTNode.moarvm
5353
$(MKPATH) $(JS_STAGE2)
5454
$(JS_NQP) --module-path gen/js/stage1 src/vm/js/bin/cross-compile.nqp --setting=NQPCORE --target=mbc --output $(JS_STAGE2)/QRegex.moarvm $(JS_STAGE2)/$(QREGEX_COMBINED) > node_modules/QRegex.js
5555

0 commit comments

Comments
 (0)