about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorHenry Jiang <henry.jiang1@ibm.com>2025-04-24 19:55:03 -0400
committerHenry Jiang <henry.jiang1@ibm.com>2025-04-24 19:55:03 -0400
commita71cba709b810ce0b15bcdb12fcc345819589404 (patch)
treeff6412761cacda0408ccc5eaa3ff81c188e834c7 /compiler/rustc_codegen_ssa/src/back
parent3c877f6a477380ed61155d3bf816df09c9e05b9e (diff)
downloadrust-a71cba709b810ce0b15bcdb12fcc345819589404.tar.gz
rust-a71cba709b810ce0b15bcdb12fcc345819589404.zip
strip underlying xcoff object
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index 8de68925cab..9332edbfd15 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -1090,11 +1090,11 @@ fn link_natively(
         match strip {
             Strip::Debuginfo => {
                 // FIXME: AIX's strip utility only offers option to strip line number information.
-                strip_with_external_utility(sess, stripcmd, out_filename, &["-X32_64", "-l"])
+                strip_with_external_utility(sess, stripcmd, temp_filename, &["-X32_64", "-l"])
             }
             Strip::Symbols => {
                 // Must be noted this option might remove symbol __aix_rust_metadata and thus removes .info section which contains metadata.
-                strip_with_external_utility(sess, stripcmd, out_filename, &["-X32_64", "-r"])
+                strip_with_external_utility(sess, stripcmd, temp_filename, &["-X32_64", "-r"])
             }
             Strip::None => {}
         }