diff options
| author | Qiu Chaofan <qcf@ecnelises.com> | 2024-02-28 17:41:12 +0800 |
|---|---|---|
| committer | Qiu Chaofan <qcf@ecnelises.com> | 2024-02-28 17:41:12 +0800 |
| commit | 9d713862521f70c610b687d1629ee8fc4fb1e5ce (patch) | |
| tree | c832e71d91e434c7b5c0cebface222ca1762ff79 /compiler/rustc_codegen_ssa/src/back | |
| parent | ef324565d071c6d7e2477a195648549e33d6a465 (diff) | |
Add profiling support to AIX
AIX ld needs special option to merge objects with profiling. Also, profiler_builtins should include builtins for AIX from compiler-rt.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/linker.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/linker.rs b/compiler/rustc_codegen_ssa/src/back/linker.rs index 1f3383815e2..e52efd86955 100644 --- a/compiler/rustc_codegen_ssa/src/back/linker.rs +++ b/compiler/rustc_codegen_ssa/src/back/linker.rs @@ -1631,7 +1631,9 @@ impl<'a> Linker for AixLinker<'a> { fn optimize(&mut self) {} - fn pgo_gen(&mut self) {} + fn pgo_gen(&mut self) { + self.cmd.arg("-bdbg:namedsects:ss"); + } fn control_flow_guard(&mut self) {} |
