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;
3
3
use std:: io:: { self , Write } ;
4
4
5
5
fn 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
-
11
6
let output = Command :: new ( "make" )
12
7
. arg ( "-C" )
13
8
. arg ( "../../../usr/mkfs" )
14
9
. arg ( "build/libfs.a" )
15
10
. output ( )
16
11
. unwrap ( ) ;
12
+
17
13
io:: stdout ( ) . write_all ( & output. stdout ) . unwrap ( ) ;
18
14
io:: stderr ( ) . write_all ( & output. stderr ) . unwrap ( ) ;
19
15
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) ;
20
20
println ! ( "cargo:rustc-link-lib=static=fs" ) ;
21
21
}
You can’t perform that action at this time.
0 commit comments