diff options
author | Michal Gorny <mgorny@gentoo.org> | 2017-10-02 05:03:55 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2017-10-02 05:03:55 +0000 |
commit | 63780036ddaf039747a5491d6dd7c2e3809bb41a (patch) | |
tree | 89d528cfe2e0fffc6f6b26f73d973ffdc954a8bd /lib/CMakeLists.txt | |
parent | c9b5e685aed2bf2bd2faa0566b90196f6e9eb7ba (diff) |
[cmake] Add a separate CMake var to control profile runtime
Make it possible to control building profile runtime separately from
other options. Before r313549, the profile runtime building was
controlled along with sanitizers. However, since that commit it is built
unconditionally which results in multiple builds for people building
different runtimes separately.
Differential Revision: https://reviews.llvm.org/D38441
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@314646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r-- | lib/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index a92d0a3f0..b3731f653 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -41,7 +41,7 @@ if(COMPILER_RT_BUILD_SANITIZERS) endforeach() endif() -if (COMPILER_RT_HAS_PROFILE) +if(COMPILER_RT_BUILD_PROFILE AND COMPILER_RT_HAS_PROFILE) compiler_rt_build_runtime(profile) endif() |