]> git.lizzy.rs Git - rust.git/commitdiff
Update makefiles to ensure src/grammar/verify.rs is built.
authorHuon Wilson <dbau.pp+github@gmail.com>
Wed, 19 Nov 2014 02:11:24 +0000 (13:11 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 19 Nov 2014 02:12:05 +0000 (13:12 +1100)
It's not run, but this ensures that the code at least doesn't go out of
date.

mk/grammar.mk
mk/tests.mk

index 12190fb0348543881f934a5c141dfed441a014f7..a9f45907b8110b50716f02bbe0ebefd43fcb00b5 100644 (file)
@@ -30,17 +30,25 @@ endef
 $(BG):
        $(Q)mkdir -p $(BG)
 
-$(BG)RustLexer.class: $(SG)RustLexer.g4
+$(BG)RustLexer.class: $(BG) $(SG)RustLexer.g4
        $(Q)$(CFG_ANTLR4) -o $(B)grammar $(SG)RustLexer.g4
        $(Q)$(CFG_JAVAC) -d $(BG) $(BG)RustLexer.java
 
-$(BG)verify: $(SG)verify.rs rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
-       $(Q)$(RUSTC) -O --out-dir $(BG) -L $(L) $(SG)verify.rs
+check-build-lexer-verifier: $(BG)verify
+
+ifeq ($(NO_REBUILD),)
+VERIFY_DEPS :=  rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.regex_macros $(LD)stamp.rustc
+else
+VERIFY_DEPS :=
+endif
+
+$(BG)verify: $(BG) $(SG)verify.rs $(VERIFY_DEPS)
+       $(Q)$(RUSTC) --out-dir $(BG) -L $(L) $(SG)verify.rs
 
 ifdef CFG_JAVAC
 ifdef CFG_ANTLR4
 ifdef CFG_GRUN
-check-lexer: $(BG) $(BG)RustLexer.class $(BG)verify
+check-lexer: $(BG) $(BG)RustLexer.class check-build-lexer-verifier
        $(info Verifying libsyntax against the reference lexer ...)
        $(Q)$(SG)check.sh $(S) "$(BG)" \
                "$(CFG_GRUN)" "$(BG)verify" "$(BG)RustLexer.tokens"
index 4433d780dedf6fd3ef52e42a69bb2bfbd9ad0e5f..63a34e0f01007a4376058bf7c4b66940c2016e9c 100644 (file)
@@ -199,7 +199,7 @@ check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
 
 # Some less critical tests that are not prone to breakage.
 # Not run as part of the normal test suite, but tested by bors on checkin.
-check-secondary: check-build-compiletest check-lexer check-pretty
+check-secondary: check-build-compiletest check-build-lexer-verifier check-lexer check-pretty
 
 # check + check-secondary.
 #