]> granicus.if.org Git - clang/commit
[clang] Enable clang build with LLVM_BUILD_INSTRUMENTED without setting LLVM_PROFTDATA
authorAlexander Shaposhnikov <shal1t712@gmail.com>
Fri, 13 Oct 2017 03:21:39 +0000 (03:21 +0000)
committerAlexander Shaposhnikov <shal1t712@gmail.com>
Fri, 13 Oct 2017 03:21:39 +0000 (03:21 +0000)
commit290556e7d3c9fbb74087dc447752b55dbd10ffeb
treea94ed94f30663258a41692305ce82c6caa269dd2
parent404915f6a478cc55d43a338a6a6fdec062642960
[clang] Enable clang build with LLVM_BUILD_INSTRUMENTED without setting LLVM_PROFTDATA

At the moment if LLVM_BUILD_INSTRUMENTED is set to True
one has to set LLVM_PROFTDATA even if it's not really used
(because of message(FATAL_ERROR ...)).
Building the instrumented version of Clang can be useful even if
one doesn't plan to build the target generate-profdata
(currently that target would only compile utils/perf-training/cxx/hello_world.cpp).
For example, one can run the instrumented version of Clang
via a separate build system against a different codebase,
collect/analyze the profiles and merge them by llvm-profdata later.

Differential revision: https://reviews.llvm.org/D38859

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315665 91177308-0d34-0410-b5e6-96231b3b80d8
utils/perf-training/CMakeLists.txt