diff options
author | Michael Kruse <llvm@meinersbur.de> | 2019-03-26 15:19:15 +0000 |
---|---|---|
committer | Michael Kruse <llvm@meinersbur.de> | 2019-03-26 15:19:15 +0000 |
commit | 3e3199a8000cd9d3b8f9f36a12798cc336fcd63f (patch) | |
tree | b941f04dbaf7e634df0ba44b65c5019186a0a247 /cmake/OpenMPTesting.cmake | |
parent | fe2a27367ac6d6443246566e803a68390b786e4b (diff) |
[libomptarget] Introduce LIBOMPTARGET_ENABLE_DEBUG cmake option.
At the moment, support for runtime debug output using the
OMPTARGET_DEBUG=1 environment variable is only available with
CMAKE_BUILD_TYPE=Debug builds. The patch allows setting it independently
using the LIBOMPTARGET_ENABLE_DEBUG option, which is enabled by default
depending on CMAKE_BUILD_TYPE. That is, unless this option is set
explicitly, nothing changes. This is the same mechanism used by LLVM for
LLVM_ENABLE_ASSERTIONS.
This patch also removes adding -g -O0 in debug builds, it should be
handled by cmake's CMAKE_{C|CXX}_FLAGS_DEBUG configuration option.
Idea by Hal Finkel
Differential Revision: https://reviews.llvm.org/D55952
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@356998 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/OpenMPTesting.cmake')
0 files changed, 0 insertions, 0 deletions