[OpenMP] Disable libomptarget profiling by default if built via the "runtimes" setup
authorMartin Storsjö <martin@martin.st>
Wed, 17 Nov 2021 13:06:15 +0000 (15:06 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 7 Dec 2021 20:23:50 +0000 (22:23 +0200)
commitdb32c4f45625dddc2c5cb683adf3d9cab7a9732f
tree119b588b23edd4c1dcb9f2506c95375dcd10aebc
parent6116ff297f52c32fbe617c5dcea33c54c2c274ee
[OpenMP] Disable libomptarget profiling by default if built via the "runtimes" setup

In the "runtimes" setup, the runtime (e.g. OpenMP) can be built for
a target entirely different from the current host build (where LLVM
and Clang are built). If profiling is enabled, libomptarget links
against LLVMSupport (which only has been built for the host).

Thus, don't enable profiling by default in this setup.

This should allow relanding D113253.

Differential Revision: https://reviews.llvm.org/D114083
openmp/CMakeLists.txt