Skip to content

Commit a7c415c

Browse files
committed
add builder-config into tarball sources
This will be useful for certain scenarios where developers want to know how the tarball sources were generated. We also want this to check for CI rustc incompatible options on bootstrap. Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 60d1465 commit a7c415c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/src/utils/tarball.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ impl<'a> Tarball<'a> {
317317
channel::write_commit_hash_file(&self.overlay_dir, &info.sha);
318318
channel::write_commit_info_file(&self.overlay_dir, info);
319319
}
320+
321+
// Add config file if present.
322+
if let Some(config) = &self.builder.config.config {
323+
self.add_renamed_file(config, &self.overlay_dir, "builder-config");
324+
}
325+
320326
for file in self.overlay.legal_and_readme() {
321327
self.builder.install(&self.builder.src.join(file), &self.overlay_dir, 0o644);
322328
}

0 commit comments

Comments
 (0)