File tree Expand file tree Collapse file tree 3 files changed +6
-17284
lines changed
Expand file tree Collapse file tree 3 files changed +6
-17284
lines changed Original file line number Diff line number Diff line change 11/target
22
33* .mrb
4- examples /out.c
4+ examples /out.c
5+ src /bindings.rs
Original file line number Diff line number Diff line change @@ -4,18 +4,19 @@ use glob::glob;
44fn 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+ }
You can’t perform that action at this time.
0 commit comments