File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ SG = $(S)src/grammar/
13
13
B = $(CFG_BUILD_DIR ) /$(CFG_BUILD ) /stage2/
14
14
L = $(B ) lib/rustlib/$(CFG_BUILD ) /lib
15
15
LD = $(CFG_BUILD ) /stage2/lib/rustlib/$(CFG_BUILD ) /lib/
16
- RUSTC = $(B ) bin/rustc
16
+ RUSTC = $(STAGE2_T_ $( CFG_BUILD ) _H_ $( CFG_BUILD ) )
17
17
18
18
# Run the reference lexer against libsyntax and compare the tokens and spans.
19
19
# If "// ignore-lexer-test" is present in the file, it will be ignored.
@@ -37,19 +37,25 @@ $(BG)RustLexer.class: $(SG)RustLexer.g4
37
37
$(BG ) verify : $(SG ) verify.rs rustc-stage2-H-$(CFG_BUILD ) $(LD ) stamp.regex_macros $(LD ) stamp.rustc
38
38
$(Q )$(RUSTC ) -O --out-dir $(BG ) -L $(L ) $(SG ) verify.rs
39
39
40
- check-lexer : $(BG ) $(BG ) RustLexer.class $(BG ) verify
41
40
ifdef CFG_JAVAC
42
41
ifdef CFG_ANTLR4
43
42
ifdef CFG_GRUN
43
+ check-lexer : $(BG ) $(BG ) RustLexer.class $(BG ) verify
44
44
$(info Verifying libsyntax against the reference lexer ...)
45
45
$(Q )$(SG ) check.sh $(S ) " $( BG) " \
46
46
" $( CFG_GRUN) " " $( BG) verify" " $( BG) RustLexer.tokens"
47
47
else
48
48
$(info grun not available, skipping lexer test...)
49
+ check-lexer :
50
+
49
51
endif
50
52
else
51
53
$(info antlr4 not available, skipping lexer test...)
54
+ check-lexer :
55
+
52
56
endif
53
57
else
54
58
$(info javac not available, skipping lexer test...)
59
+ check-lexer :
60
+
55
61
endif
You can’t perform that action at this time.
0 commit comments