Upgrade Tree-sitter, use single source file in build script
This commit is contained in:
parent
db360b73fb
commit
afe7223582
2 changed files with 3 additions and 24 deletions
25
build.rs
25
build.rs
|
|
@ -13,29 +13,8 @@ fn main() {
|
|||
.flag_if_supported("-Wno-unused-parameter")
|
||||
.include(root_path.join("src"))
|
||||
.include(root_path.join("include"))
|
||||
.include(root_path.join("externals").join("utf8proc"));
|
||||
|
||||
let source_filenames = [
|
||||
"get_changed_ranges.c",
|
||||
"language.c",
|
||||
"lexer.c",
|
||||
"node.c",
|
||||
"parser.c",
|
||||
"stack.c",
|
||||
"subtree.c",
|
||||
"tree_cursor.c",
|
||||
"tree.c",
|
||||
"utf16.c",
|
||||
];
|
||||
|
||||
config.files(source_filenames.iter().map(|source_filename| {
|
||||
root_path
|
||||
.join("src")
|
||||
.join("runtime")
|
||||
.join(&source_filename)
|
||||
}));
|
||||
|
||||
config.file(root_path.join("externals").join("utf8proc").join("utf8proc.c"));
|
||||
.include(root_path.join("externals").join("utf8proc"))
|
||||
.file(root_path.join("src").join("runtime").join("runtime.c"));
|
||||
|
||||
if env::var("RUST_TREE_SITTER_TEST").is_ok() {
|
||||
let parser_dir: PathBuf = ["fixtures", "tree-sitter-rust", "src"].iter().collect();
|
||||
|
|
|
|||
2
vendor/tree-sitter
vendored
2
vendor/tree-sitter
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit 16376c43f5cc75bbc5297e6d5716bd94d55ccc05
|
||||
Subproject commit 6b8e5bd1f96ab63f17873ef9f7a72569a421810f
|
||||
Loading…
Add table
Add a link
Reference in a new issue