Skip to content

Commit 79d0196

Browse files
author
unknown
committed
Fix build.rs
1 parent 0d9025d commit 79d0196

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ build
55
*.obj
66
*.lib
77
*.wasm
8-
package-lock.json
8+
package-lock.json
9+
Cargo.lock
10+
target

bindings/rust/build.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@ fn main() {
2525
// If your language uses an external scanner written in C++,
2626
// then include this block of code:
2727

28-
/*
2928
let mut cpp_config = cc::Build::new();
3029
cpp_config.cpp(true);
3130
cpp_config.include(&src_dir);
3231
cpp_config
3332
.flag_if_supported("-Wno-unused-parameter")
3433
.flag_if_supported("-Wno-unused-but-set-variable");
35-
let scanner_path = src_dir.join("scanner.cc");
34+
let scanner_path = src_dir.join("scanner.c");
3635
cpp_config.file(&scanner_path);
3736
cpp_config.compile("scanner");
3837
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
39-
*/
4038
}

0 commit comments

Comments
 (0)