Skip to content

Commit

Permalink
Merge pull request ikatyang#13 from maxbrunsfeld/main
Browse files Browse the repository at this point in the history
Compile external scanner in rust build script
  • Loading branch information
MDeiml authored Dec 7, 2021
2 parents 39bd0f8 + b2b4eef commit ad8c329
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 ad8c329

Please sign in to comment.