Add rerun_except crate to prevent building when .asm files are changed
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
5
build.rs
5
build.rs
@@ -1,6 +1,7 @@
|
||||
use cfgrammar::yacc::YaccKind;
|
||||
use lrlex::LexerBuilder;
|
||||
use lrpar::{CTParserBuilder};
|
||||
use rerun_except::rerun_except;
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let lex_rule_ids_map = CTParserBuilder::new()
|
||||
@@ -9,5 +10,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
LexerBuilder::new()
|
||||
.rule_ids_map(lex_rule_ids_map)
|
||||
.process_file_in_src("vm/obj/syn/lexer.l")?;
|
||||
rerun_except(&[
|
||||
"examples/*.asm",
|
||||
"tests/*.asm",
|
||||
]).unwrap();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user