lapce/build.rs

12 lines
271 B
Rust

use std::path::PathBuf;
fn main() {
let dir: PathBuf = ["lib", "tree-sitter-rust", "src"].iter().collect();
cc::Build::new()
.include(&dir)
.file(dir.join("parser.c"))
.file(dir.join("scanner.c"))
.compile("tree-sitter-rust");
}