Implement printing to file in codegen_backend.print

This commit is contained in:
David Tolnay
2023-07-16 22:33:38 -07:00
parent 5a60660ff8
commit c80cbe4bae
4 changed files with 33 additions and 14 deletions

View File

@@ -834,7 +834,7 @@ fn print_crate_info(
| TargetCPUs
| StackProtectorStrategies
| TargetFeatures => {
codegen_backend.print(req, sess);
codegen_backend.print(req, &mut crate_info, sess);
}
// Any output here interferes with Cargo's parsing of other printed output
NativeStaticLibs => {}