Skip to content

Commit 48e26bb

Browse files
committed
Remove src/bindings.rs in git control
1 parent 243db36 commit 48e26bb

File tree

3 files changed

+6
-17284
lines changed

3 files changed

+6
-17284
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/target
22

33
*.mrb
4-
examples/out.c
4+
examples/out.c
5+
src/bindings.rs

build.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ use glob::glob;
44
fn main() {
55
let out_dir = std::env::var("OUT_DIR").unwrap();
66

7+
println!("cargo:rerun-if-changed=src/bindings.rs");
78
println!("cargo:rerun-if-changed=build.rs");
89
println!("cargo:rustc-link-search={}", out_dir);
910
cc::Build::new()
1011
.files(
1112
glob("./vendor/mruby-compiler2/src/**/*.c")
1213
.expect("cannot find c source")
13-
.map(|x| x.unwrap())
14+
.map(|x| x.unwrap()),
1415
)
1516
.files(
1617
glob("./vendor/mruby-compiler2/lib/prism/src/**/*.c")
1718
.expect("cannot find c source")
18-
.map(|x| x.unwrap())
19+
.map(|x| x.unwrap()),
1920
)
2021
.warnings(false)
2122
.define("MRB_NO_PRESYM", "")
@@ -46,4 +47,4 @@ fn main() {
4647
bindings
4748
.write_to_file("./src/bindings.rs")
4849
.expect("Couldn't write bindings!");
49-
}
50+
}

0 commit comments

Comments
 (0)