File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1080,6 +1080,21 @@ fn link_natively<'a>(
1080
1080
}
1081
1081
}
1082
1082
1083
+ if sess. target . is_like_aix {
1084
+ let stripcmd = "/usr/bin/strip" ;
1085
+ match strip {
1086
+ Strip :: Debuginfo => {
1087
+ // FIXME: AIX's strip utility only offers option to strip line number information.
1088
+ strip_symbols_with_external_utility ( sess, stripcmd, out_filename, Some ( "-l" ) )
1089
+ }
1090
+ Strip :: Symbols => {
1091
+ // Must be noted this option removes symbol __aix_rust_metadata and thus removes .info section which contains metadata.
1092
+ strip_symbols_with_external_utility ( sess, stripcmd, out_filename, Some ( "-r" ) )
1093
+ }
1094
+ Strip :: None => { }
1095
+ }
1096
+ }
1097
+
1083
1098
Ok ( ( ) )
1084
1099
}
1085
1100
You can’t perform that action at this time.
0 commit comments