From b2b4eefd51ada972ef8bb581b83b6b8e7a28c7a6 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sun, 5 Dec 2021 20:56:52 -0800 Subject: [PATCH] Compile external scanner in rust build script --- bindings/rust/build.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index c6061f0..58eecd5 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -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); @@ -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()); - */ }