diff options
| author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-07-09 18:16:58 +0000 |
|---|---|---|
| committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-07-09 18:16:58 +0000 |
| commit | 8fbb49ab78ec4192189d42166a79a3e072802232 (patch) | |
| tree | 7ec5fcc358609283ab284f824ea3edb848d146ef /openmp/runtime/cmake | |
| parent | 0373d53ae4eeca83f0c895b95cd7f9e4d6511845 (diff) | |
| download | bcm5719-llvm-8fbb49ab78ec4192189d42166a79a3e072802232.tar.gz bcm5719-llvm-8fbb49ab78ec4192189d42166a79a3e072802232.zip | |
Enable debugger support
These changes enable external debuggers to conveniently interface with
the LLVM OpenMP Library. Structures are added which describe the important
internal structures of the OpenMP Library e.g., teams, threads, etc.
This feature is turned on by default (CMake variable LIBOMP_USE_DEBUGGER)
and can be turned off with -DLIBOMP_USE_DEBUGGER=off.
Differential Revision: http://reviews.llvm.org/D10038
llvm-svn: 241832
Diffstat (limited to 'openmp/runtime/cmake')
| -rw-r--r-- | openmp/runtime/cmake/Definitions.cmake | 5 | ||||
| -rw-r--r-- | openmp/runtime/cmake/SourceFiles.cmake | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/openmp/runtime/cmake/Definitions.cmake b/openmp/runtime/cmake/Definitions.cmake index fe367d3520e..9da81ca9f17 100644 --- a/openmp/runtime/cmake/Definitions.cmake +++ b/openmp/runtime/cmake/Definitions.cmake @@ -102,6 +102,11 @@ function(append_cpp_flags input_cpp_flags) else() append_definitions("-D KMP_STATS_ENABLED=0") endif() + if(${LIBOMP_USE_DEBUGGER}) + append_definitions("-D USE_DEBUGGER=1") + else() + append_definitions("-D USE_DEBUGGER=0") + endif() if(${LIBOMP_OMPT_SUPPORT}) append_definitions("-D OMPT_SUPPORT=1") else() diff --git a/openmp/runtime/cmake/SourceFiles.cmake b/openmp/runtime/cmake/SourceFiles.cmake index 4cd2a1de759..d26d7a2c9d7 100644 --- a/openmp/runtime/cmake/SourceFiles.cmake +++ b/openmp/runtime/cmake/SourceFiles.cmake @@ -42,6 +42,7 @@ function(set_c_files input_c_source_files) append_c_source_file("kmp_atomic.c") append_c_source_file("kmp_csupport.c") append_c_source_file("kmp_debug.c") + append_c_source_file("kmp_debugger.c") append_c_source_file("kmp_itt.c") append_c_source_file("kmp_environment.c") append_c_source_file("kmp_error.c") |

