fix: add scanner.cc for Rust
Co-authored-by: ShootingStarDragons <ShootingStarDragons@protonmail.com>
This commit is contained in:
parent
b766bd4896
commit
13c7c529d7
|
@ -25,7 +25,6 @@ fn main() {
|
||||||
// If your language uses an external scanner written in C++,
|
// If your language uses an external scanner written in C++,
|
||||||
// then include this block of code:
|
// then include this block of code:
|
||||||
|
|
||||||
/*
|
|
||||||
let mut cpp_config = cc::Build::new();
|
let mut cpp_config = cc::Build::new();
|
||||||
cpp_config.cpp(true);
|
cpp_config.cpp(true);
|
||||||
cpp_config.include(&src_dir);
|
cpp_config.include(&src_dir);
|
||||||
|
@ -36,5 +35,4 @@ fn main() {
|
||||||
cpp_config.file(&scanner_path);
|
cpp_config.file(&scanner_path);
|
||||||
cpp_config.compile("scanner");
|
cpp_config.compile("scanner");
|
||||||
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
|
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue