Rollup merge of #121730 - ecnelises:aix_pgo, r=wesleywiser
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.
This commit is contained in:
commit
4f32f78fc6
2 changed files with 4 additions and 1 deletions
|
@ -1631,7 +1631,9 @@ impl<'a> Linker for AixLinker<'a> {
|
||||||
|
|
||||||
fn optimize(&mut self) {}
|
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) {}
|
fn control_flow_guard(&mut self) {}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@ fn main() {
|
||||||
"InstrProfilingMerge.c",
|
"InstrProfilingMerge.c",
|
||||||
"InstrProfilingMergeFile.c",
|
"InstrProfilingMergeFile.c",
|
||||||
"InstrProfilingNameVar.c",
|
"InstrProfilingNameVar.c",
|
||||||
|
"InstrProfilingPlatformAIX.c",
|
||||||
"InstrProfilingPlatformDarwin.c",
|
"InstrProfilingPlatformDarwin.c",
|
||||||
"InstrProfilingPlatformFuchsia.c",
|
"InstrProfilingPlatformFuchsia.c",
|
||||||
"InstrProfilingPlatformLinux.c",
|
"InstrProfilingPlatformLinux.c",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue