loxcraft/build.rs
Ajeet D'Souza 07cac8f130
Combine crates (#17)
Co-authored-by: Kartik Sharma <kartik.sharma522@gmail.com>
2023-04-24 01:58:45 +05:30

12 lines
380 B
Rust

fn main() {
lalrpop::Configuration::new()
.use_cargo_dir_conventions()
.process_file("res/grammar.lalrpop")
.expect("failed to process LALRPOP grammar");
if cfg!(test) {
for path in ["res/examples/**/*.lox", "res/benchmarks/**/*.lox"] {
build_deps::rerun_if_changed_paths(path).expect("could not read path");
}
}
}