make_kmp_debug_opt_in.patch 620 B

12345678910111213141516171819202122232425
  1. --- a/kmp_config-linux.h
  2. +++ b/kmp_config-linux.h
  3. @@ -13,10 +13,6 @@
  4. #include "kmp_platform.h"
  5. -// cmakedefine01 MACRO will define MACRO as either 0 or 1
  6. -// cmakedefine MACRO 1 will define MACRO as 1 or leave undefined
  7. -#define DEBUG_BUILD 0
  8. -#define RELWITHDEBINFO_BUILD 0
  9. #define LIBOMP_USE_ITT_NOTIFY 0
  10. #define USE_ITT_NOTIFY LIBOMP_USE_ITT_NOTIFY
  11. #if ! LIBOMP_USE_ITT_NOTIFY
  12. @@ -113,9 +109,8 @@
  13. #if STUBS_LIBRARY
  14. # define KMP_STUB 1
  15. #endif
  16. -#if DEBUG_BUILD || RELWITHDEBINFO_BUILD
  17. -# define KMP_DEBUG 1
  18. -#endif
  19. +
  20. +// KMP_DEBUG is explicitly set from ya.make
  21. #if KMP_OS_WINDOWS
  22. # define KMP_WIN_CDECL