Skip to content

Commit c14f94f

Browse files
mustarttnealsid
authored andcommitted
strip underlying xcoff object
1 parent 69e3139 commit c14f94f

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,11 @@ fn link_natively(
10651065
match strip {
10661066
Strip::Debuginfo => {
10671067
// FIXME: AIX's strip utility only offers option to strip line number information.
1068-
strip_with_external_utility(sess, stripcmd, out_filename, &["-X32_64", "-l"])
1068+
strip_with_external_utility(sess, stripcmd, temp_filename, &["-X32_64", "-l"])
10691069
}
10701070
Strip::Symbols => {
10711071
// Must be noted this option might remove symbol __aix_rust_metadata and thus removes .info section which contains metadata.
1072-
strip_with_external_utility(sess, stripcmd, out_filename, &["-X32_64", "-r"])
1072+
strip_with_external_utility(sess, stripcmd, temp_filename, &["-X32_64", "-r"])
10731073
}
10741074
Strip::None => {}
10751075
}

0 commit comments

Comments
 (0)