File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,25 @@ endef
30
30
$(BG ) :
31
31
$(Q ) mkdir -p $(BG )
32
32
33
- $(BG ) RustLexer.class : $(SG ) RustLexer.g4
33
+ $(BG ) RustLexer.class : $(BG ) $( SG ) RustLexer.g4
34
34
$(Q )$(CFG_ANTLR4 ) -o $(B ) grammar $(SG ) RustLexer.g4
35
35
$(Q )$(CFG_JAVAC ) -d $(BG ) $(BG ) RustLexer.java
36
36
37
- $(BG ) verify : $(SG ) verify.rs rustc-stage2-H-$(CFG_BUILD ) $(LD ) stamp.regex_macros $(LD ) stamp.rustc
38
- $(Q )$(RUSTC ) -O --out-dir $(BG ) -L $(L ) $(SG ) verify.rs
37
+ check-build-lexer-verifier : $(BG ) verify
38
+
39
+ ifeq ($(NO_REBUILD ) ,)
40
+ VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD ) $(LD ) stamp.regex_macros $(LD ) stamp.rustc
41
+ else
42
+ VERIFY_DEPS :=
43
+ endif
44
+
45
+ $(BG ) verify : $(BG ) $(SG ) verify.rs $(VERIFY_DEPS )
46
+ $(Q )$(RUSTC ) --out-dir $(BG ) -L $(L ) $(SG ) verify.rs
39
47
40
48
ifdef CFG_JAVAC
41
49
ifdef CFG_ANTLR4
42
50
ifdef CFG_GRUN
43
- check-lexer : $(BG ) $(BG ) RustLexer.class $( BG ) verify
51
+ check-lexer : $(BG ) $(BG ) RustLexer.class check-build-lexer-verifier
44
52
$(info Verifying libsyntax against the reference lexer ...)
45
53
$(Q )$(SG ) check.sh $(S ) " $( BG) " \
46
54
" $( CFG_GRUN) " " $( BG) verify" " $( BG) RustLexer.tokens"
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
199
199
200
200
# Some less critical tests that are not prone to breakage.
201
201
# Not run as part of the normal test suite, but tested by bors on checkin.
202
- check-secondary : check-build-compiletest check-lexer check-pretty
202
+ check-secondary : check-build-compiletest check-build-lexer-verifier check- lexer check-pretty
203
203
204
204
# check + check-secondary.
205
205
#
You can’t perform that action at this time.
0 commit comments