[Openmp-commits] [PATCH] D55952: [libomptarget] Introduce LIBOMPTARGET_ENABLE_DEBUG cmake option.

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 22 20:08:04 PDT 2019


grokos added a comment.

This revision looks much better. Please have a look at the inline comment.



================
Comment at: libomptarget/CMakeLists.txt:48-49
   add_definitions(-DOMPTARGET_DEBUG)
-  add_definitions(-g)
-  add_definitions(-O0)
 endif()
----------------
Why are these lines removed? When building in debug mode we need to have debug symbols (-g) and prevent the compiler from optimizing things away (-O0) in order to be able to use a debugger correctly.


Repository:
  rOMP OpenMP

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55952/new/

https://reviews.llvm.org/D55952





More information about the Openmp-commits mailing list