benchmarks: Use fixture languages' own copies of parser.h when compiling them
This commit is contained in:
parent
18a13b457d
commit
bef80c162e
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue