[cmake] By default do not build compiler-rt with PGO
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 9 Mar 2020 22:25:41 +0000 (15:25 -0700)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 9 Mar 2020 22:52:38 +0000 (15:52 -0700)
commit20dfcf189d224e637377970318a021c81d2fbde0
tree977f473aa957d2510cd41e90166aea8b14edbfdc
parent52bbdad7d63fd060d102b3591b433d116a982255
[cmake] By default do not build compiler-rt with PGO

Patch by Zhizhou Yang!

In his own words:

"""
Currently compiler-rt doesn't officially support either PGO
instrumentation or use PGO profdata to build it.

PGO related flags are passed into compiler-rt since rL372209, and
causing bugs: 45022, crbug:1018840

This patch adds several checks in compiler-rt to disable PGO related
flags and provides a flag to turn on PGO for compiler-rt if needed.
"""

Differential Revision: https://reviews.llvm.org/D75499
compiler-rt/CMakeLists.txt
compiler-rt/cmake/Modules/AddCompilerRT.cmake
compiler-rt/cmake/config-ix.cmake
compiler-rt/lib/crt/CMakeLists.txt