lapce/build.rs

12 lines
271 B
Rust
Raw Normal View History

2020-09-25 16:11:03 +00:00
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");
}