File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,20 @@ fn main() {
33 println ! ( "cargo:rustc-link-arg-bin=flash0802=-Tneotron-flash-0802.ld" ) ;
44 println ! ( "cargo:rustc-link-arg-bin=flash0002=-Tneotron-flash-0002.ld" ) ;
55
6- if let Ok ( cmd_output) = std:: process:: Command :: new ( "git" )
7- . arg ( "describe" )
8- . arg ( "--all" )
9- . arg ( "--dirty" )
10- . arg ( "--long" )
11- . output ( )
12- {
13- let git_version = std:: str:: from_utf8 ( & cmd_output. stdout ) . unwrap ( ) ;
14- println ! (
15- "cargo:rustc-env=OS_VERSION={} (git:{})" ,
16- env!( "CARGO_PKG_VERSION" ) ,
17- git_version. trim( )
18- ) ;
19- } else {
20- println ! ( "cargo:rustc-env=OS_VERSION={}" , env!( "CARGO_PKG_VERSION" ) ) ;
21- }
6+ if let Ok ( cmd_output) = std:: process:: Command :: new ( "git" )
7+ . arg ( "describe" )
8+ . arg ( "--all" )
9+ . arg ( "--dirty" )
10+ . arg ( "--long" )
11+ . output ( )
12+ {
13+ let git_version = std:: str:: from_utf8 ( & cmd_output. stdout ) . unwrap ( ) ;
14+ println ! (
15+ "cargo:rustc-env=OS_VERSION={} (git:{})" ,
16+ env!( "CARGO_PKG_VERSION" ) ,
17+ git_version. trim( )
18+ ) ;
19+ } else {
20+ println ! ( "cargo:rustc-env=OS_VERSION={}" , env!( "CARGO_PKG_VERSION" ) ) ;
21+ }
2222}
You can’t perform that action at this time.
0 commit comments