Skip to content

Commit

Permalink
Compile external scanner in rust build script
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunsfeld committed Dec 6, 2021
1 parent 39bd0f8 commit b2b4eef
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions bindings/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,9 @@ fn main() {
// If your language uses an external scanner written in C,
// then include this block of code:

/*
let scanner_path = src_dir.join("scanner.c");
c_config.file(&scanner_path);
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
*/

c_config.compile("parser");
println!("cargo:rerun-if-changed={}", parser_path.to_str().unwrap());

// If your language uses an external scanner written in C++,
// then include this block of code:

/*
let mut cpp_config = cc::Build::new();
cpp_config.cpp(true);
cpp_config.include(&src_dir);
Expand All @@ -36,5 +26,4 @@ fn main() {
cpp_config.file(&scanner_path);
cpp_config.compile("scanner");
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
*/
}

0 comments on commit b2b4eef

Please sign in to comment.