File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -846,6 +846,8 @@ impl Step for PlainSourceTarball {
846
846
847
847
// Create the version file
848
848
write_file ( & plain_dst_src. join ( "version" ) , build. rust_version ( ) . as_bytes ( ) ) ;
849
+ let sha = build. rust_sha ( ) . unwrap_or ( "" ) ;
850
+ write_file ( & plain_dst_src. join ( "git-commit-hash" ) , sha. as_bytes ( ) ) ;
849
851
850
852
// If we're building from git sources, we need to vendor a complete distribution.
851
853
if build. rust_info . is_git ( ) {
@@ -1158,7 +1160,9 @@ impl Step for Extended {
1158
1160
install ( & build. src . join ( "LICENSE-APACHE" ) , & overlay, 0o644 ) ;
1159
1161
install ( & build. src . join ( "LICENSE-MIT" ) , & overlay, 0o644 ) ;
1160
1162
let version = build. rust_version ( ) ;
1163
+ let sha = build. rust_sha ( ) . unwrap_or ( "" ) ;
1161
1164
t ! ( t!( File :: create( overlay. join( "version" ) ) ) . write_all( version. as_bytes( ) ) ) ;
1165
+ t ! ( t!( File :: create( overlay. join( "git-commit-hash" ) ) ) . write_all( sha. as_bytes( ) ) ) ;
1162
1166
install ( & etc. join ( "README.md" ) , & overlay, 0o644 ) ;
1163
1167
1164
1168
// When rust-std package split from rustc, we needed to ensure that during
You can’t perform that action at this time.
0 commit comments