File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,19 @@ use std::process::Command;
33use std:: io:: { self , Write } ;
44
55fn main ( ) {
6- let manifest_dir = var ( "CARGO_MANIFEST_DIR" ) . unwrap ( ) ;
7- println ! ( "cargo:rerun-if-changed=build.rs" ) ;
8- println ! ( "cargo:rerun-if-changed={}/../../../usr/" , manifest_dir) ;
9- println ! ( "cargo:rustc-link-search=native={}/../../../usr/mkfs/build" , manifest_dir) ;
10-
116 let output = Command :: new ( "make" )
127 . arg ( "-C" )
138 . arg ( "../../../usr/mkfs" )
149 . arg ( "build/libfs.a" )
1510 . output ( )
1611 . unwrap ( ) ;
12+
1713 io:: stdout ( ) . write_all ( & output. stdout ) . unwrap ( ) ;
1814 io:: stderr ( ) . write_all ( & output. stderr ) . unwrap ( ) ;
1915
16+ let manifest_dir = var ( "CARGO_MANIFEST_DIR" ) . unwrap ( ) ;
17+ println ! ( "cargo:rerun-if-changed=build.rs" ) ;
18+ println ! ( "cargo:rerun-if-changed={}/../../../usr/" , manifest_dir) ;
19+ println ! ( "cargo:rustc-link-search=native={}/../../../usr/mkfs/build" , manifest_dir) ;
2020 println ! ( "cargo:rustc-link-lib=static=fs" ) ;
2121}
You can’t perform that action at this time.
0 commit comments