benchmarks: Use fixture languages' own copies of parser.h when compiling them

This commit is contained in:
Max Brunsfeld 2019-02-07 14:39:54 -08:00
parent 18a13b457d
commit bef80c162e

View file

@ -166,7 +166,8 @@ fn parse(parser: &mut Parser, example_path: &Path, max_path_length: usize) -> us
}
fn get_language(name: &str) -> Language {
let src_dir = GRAMMARS_DIR.join(name).join("src");
TEST_LOADER
.load_language_at_path(name, &GRAMMARS_DIR.join(name).join("src"), &HEADER_DIR)
.load_language_at_path(name, &src_dir, &src_dir)
.unwrap()
}